From 77deff930ee9babec5b29306a6d5c5de476d5234 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 13 Jun 2024 19:53:43 +0300 Subject: [PATCH] Refactor modules Signed-off-by: Nikolaos Karaolidis --- .gitignore | 2 + README.md | 32 +++++ flake.nix | 14 +-- {common => hosts/common}/configs/neovim.nix | 0 {common => hosts/common}/configs/tmux.nix | 0 {common => hosts/common}/configs/zsh.nix | 0 {common => hosts/common}/default.nix | 2 + .../common}/scripts/impermanence.sh | 0 hosts/eirene/default.nix | 21 +--- hosts/eirene/format.nix | 117 ++++++++---------- hosts/eirene/vm/default.nix | 9 +- user/configs/git.nix | 22 ---- user/configs/hyprland.nix | 81 ------------ user/configs/stylix.nix | 21 ---- user/default.nix | 92 -------------- user/nick.nix | 5 - user/scripts/hyprland-init.sh | 0 user/secrets/.gitignore | 2 - {user => users/common}/configs/firefox.nix | 0 users/common/configs/git.nix | 6 + users/common/configs/hyprland.nix | 64 ++++++++++ {user => users/common}/configs/kitty.nix | 0 users/common/configs/stylix.nix | 3 + {user => users/common}/configs/zsh.nix | 0 users/common/default.nix | 95 ++++++++++++++ users/common/extra.nix | 32 +++++ users/nick/default.nix | 19 +++ {user => users/nick}/wallpapers/car.jpg | 0 {user => users/nick}/wallpapers/cats.jpg | 0 {user => users/nick}/wallpapers/clouds.png | 0 {user => users/nick}/wallpapers/girl.png | 0 {user => users/nick}/wallpapers/mountain.jpg | 0 {user => users/nick}/wallpapers/plane.jpg | 0 {user => users/nick}/wallpapers/snow.jpg | 0 34 files changed, 326 insertions(+), 313 deletions(-) create mode 100644 .gitignore rename {common => hosts/common}/configs/neovim.nix (100%) rename {common => hosts/common}/configs/tmux.nix (100%) rename {common => hosts/common}/configs/zsh.nix (100%) rename {common => hosts/common}/default.nix (94%) rename {common => hosts/common}/scripts/impermanence.sh (100%) delete mode 100644 user/configs/git.nix delete mode 100644 user/configs/hyprland.nix delete mode 100644 user/configs/stylix.nix delete mode 100644 user/default.nix delete mode 100644 user/nick.nix delete mode 100644 user/scripts/hyprland-init.sh delete mode 100644 user/secrets/.gitignore rename {user => users/common}/configs/firefox.nix (100%) create mode 100644 users/common/configs/git.nix create mode 100644 users/common/configs/hyprland.nix rename {user => users/common}/configs/kitty.nix (100%) create mode 100644 users/common/configs/stylix.nix rename {user => users/common}/configs/zsh.nix (100%) create mode 100644 users/common/default.nix create mode 100644 users/common/extra.nix create mode 100644 users/nick/default.nix rename {user => users/nick}/wallpapers/car.jpg (100%) rename {user => users/nick}/wallpapers/cats.jpg (100%) rename {user => users/nick}/wallpapers/clouds.png (100%) rename {user => users/nick}/wallpapers/girl.png (100%) rename {user => users/nick}/wallpapers/mountain.jpg (100%) rename {user => users/nick}/wallpapers/plane.jpg (100%) rename {user => users/nick}/wallpapers/snow.jpg (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8471894 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +**/key.txt +**/secrets/plaintext/* diff --git a/README.md b/README.md index b294df2..182e7fa 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,35 @@ # nix NixOS dotfiles and configuration. + +## Installation + +The below installation example is for a fresh `eirene-vm` virtual machine. + +### Mount NixOS Configuration + +```sh +sudo -i +mkdir /host +mount -t virtiofs host /host +``` + +### Format Disks + +```sh +nix --experimental-features "nix-command flakes" run github:nix-community/disko -- --mode disko /host/hosts/eirene/format.nix --arg device '"/dev/vda"' +``` + +### Install NixOS + +```sh +mkdir -p /mnt/etc/nixos +cp -r /host/* /mnt/etc/nixos +nixos-install --root /mnt --flake /mnt/etc/nixos#eirene-vm +``` + +### Reboot + +```sh +reboot +``` diff --git a/flake.nix b/flake.nix index e35f5b4..76e9b6c 100644 --- a/flake.nix +++ b/flake.nix @@ -19,20 +19,18 @@ stylix = { url = "github:danth/stylix"; }; + + sops-nix = { + url = "github:Mic92/sops-nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, ... } @ inputs: { nixosConfigurations.eirene-vm = nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs; }; system = "x86_64-linux"; - modules = [ - ./common - ./hosts/eirene - ./hosts/eirene/vm - inputs.disko.nixosModules.default - inputs.impermanence.nixosModules.impermanence - inputs.home-manager.nixosModules.default - ]; + modules = [ ./hosts/eirene/vm ]; }; }; } diff --git a/common/configs/neovim.nix b/hosts/common/configs/neovim.nix similarity index 100% rename from common/configs/neovim.nix rename to hosts/common/configs/neovim.nix diff --git a/common/configs/tmux.nix b/hosts/common/configs/tmux.nix similarity index 100% rename from common/configs/tmux.nix rename to hosts/common/configs/tmux.nix diff --git a/common/configs/zsh.nix b/hosts/common/configs/zsh.nix similarity index 100% rename from common/configs/zsh.nix rename to hosts/common/configs/zsh.nix diff --git a/common/default.nix b/hosts/common/default.nix similarity index 94% rename from common/default.nix rename to hosts/common/default.nix index 0f10d3f..2c88e6c 100644 --- a/common/default.nix +++ b/hosts/common/default.nix @@ -2,6 +2,7 @@ { imports = [ + inputs.impermanence.nixosModules.impermanence ./configs/zsh.nix ./configs/neovim.nix ./configs/tmux.nix @@ -36,6 +37,7 @@ "/var/lib/systemd/coredump" ]; files = [ + "/var/lib/sops-nix/key.txt" "/etc/machine-id" "/root/.zsh_history" ]; diff --git a/common/scripts/impermanence.sh b/hosts/common/scripts/impermanence.sh similarity index 100% rename from common/scripts/impermanence.sh rename to hosts/common/scripts/impermanence.sh diff --git a/hosts/eirene/default.nix b/hosts/eirene/default.nix index 7100fae..f0da195 100644 --- a/hosts/eirene/default.nix +++ b/hosts/eirene/default.nix @@ -1,25 +1,12 @@ -{ inputs, ... }: +{ config, ... }: { imports = [ - ../../user + ../common + ../../users/nick ./configs/pipewire.nix ]; time.timeZone = "Europe/Athens"; - - home-manager = { - extraSpecialArgs = { inherit inputs; }; - backupFileExtension = "bak"; - }; - - programs = { - fuse.userAllowOther = true; - dconf.enable = true; - }; - - systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ]; - - user.vars = import ../../user/nick.nix; - user.autologin = true; + services.getty.autologinUser = config.users.users.nick.name; } diff --git a/hosts/eirene/format.nix b/hosts/eirene/format.nix index 6b3b130..9c9c7af 100644 --- a/hosts/eirene/format.nix +++ b/hosts/eirene/format.nix @@ -1,71 +1,62 @@ -{ config, lib, ... }: - -let - cfg = config.format; -in { - options.format = { - device = lib.mkOption { - type = lib.types.str; - description = "The device to format"; - }; - }; + device ? throw "device argument is required", + ... +}: - config = { - disko.devices = { - disk.main = { - type = "disk"; - device = cfg.device; - content = { - type = "gpt"; - partitions = { - boot = { - name = "boot"; - size = "1M"; - type = "EF02"; +{ + disko.devices = { + disk.main = { + inherit device; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + name = "esp"; + size = "512M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; }; - esp = { - name = "esp"; - size = "512M"; - type = "EF00"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; + }; + swap = { + name = "swap"; + size = "32G"; + content = { + type = "swap"; + resumeDevice = true; + }; + }; + root = { + name = "root"; + size = "100%"; + content = { + name = "luks"; + type = "luks"; + settings = { + allowDiscards = true; }; - }; - swap = { - name = "swap"; - size = "32G"; content = { - type = "swap"; - resumeDevice = true; - }; - }; - root = { - name = "root"; - size = "100%"; - content = { - name = "luks"; - type = "luks"; - settings = { - allowDiscards = true; - }; - content = { - type = "btrfs"; - extraArgs = ["-f"]; - subvolumes = { - "/root" = { - mountpoint = "/"; - }; - "/persist" = { - mountpoint = "/persist"; - mountOptions = ["subvol=persist" "compress=zstd" "noatime"]; - }; - "/nix" = { - mountpoint = "/nix"; - mountOptions = ["subvol=nix" "compress=zstd" "noatime"]; - }; + type = "btrfs"; + extraArgs = ["-f"]; + subvolumes = { + "/root" = { + mountpoint = "/"; + }; + "/persist" = { + mountpoint = "/persist"; + mountOptions = ["subvol=persist" "compress=zstd" "noatime"]; + }; + "/nix" = { + mountpoint = "/nix"; + mountOptions = ["subvol=nix" "compress=zstd" "noatime"]; }; }; }; diff --git a/hosts/eirene/vm/default.nix b/hosts/eirene/vm/default.nix index b619a38..3c5df7e 100644 --- a/hosts/eirene/vm/default.nix +++ b/hosts/eirene/vm/default.nix @@ -1,12 +1,17 @@ +{ inputs, ... }: + { imports = [ - ../format.nix + inputs.disko.nixosModules.disko + (import ../format.nix { device = "/dev/vda"; }) ./hardware-configuration.nix + ../default.nix ]; - format.device = "/dev/vda"; networking.hostName = "eirene-vm"; + boot.kernelParams = [ "video=Virtual-1:2560x1600@60" ]; + home-manager.sharedModules = [{ wayland.windowManager.hyprland.settings.monitor = "Virtual-1, 2560x1600@60, 0x0, 1"; }]; fileSystems."/host" = { device = "host"; diff --git a/user/configs/git.nix b/user/configs/git.nix deleted file mode 100644 index 2647a29..0000000 --- a/user/configs/git.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ config, lib, ... }: - -let - cfg = config.git; -in -{ - options.git = { - vars = lib.mkOption { - type = lib.types.attrs; - description = "Variables for the user"; - }; - }; - - config = { - programs.git = { - enable = true; - lfs.enable = true; - userEmail = cfg.vars.email; - userName = cfg.vars.fullName; - }; - }; -} diff --git a/user/configs/hyprland.nix b/user/configs/hyprland.nix deleted file mode 100644 index 2482637..0000000 --- a/user/configs/hyprland.nix +++ /dev/null @@ -1,81 +0,0 @@ -{ config, lib, ... }: - -let - cfg = config.hyprland; -in -{ - options.hyprland = { - initScript = lib.mkOption { - type = lib.types.nullOr lib.types.str; - description = "Script to execute on startup"; - default = null; - }; - }; - - config = { - wayland.windowManager.hyprland = { - enable = true; - settings = { - "$mod" = "SUPER"; - "$term" = "kitty"; - - bind = [ - "$mod, Return, exec, $term" - "$mod, r, exec, rofi -show drun" - "$mod, b, exec, firefox" - - "$mod, left, movefocus, l" - "$mod, h, movefocus, l" - "$mod, down, movefocus, d" - "$mod, j, movefocus, d" - "$mod, up, movefocus, u" - "$mod, k, movefocus, u" - "$mod, right, movefocus, r" - "$mod, l, movefocus, r" - - "$mod_SHIFT, left, movewindow, l" - "$mod_SHIFT, h, movewindow, l" - "$mod_SHIFT, down, movewindow, d" - "$mod_SHIFT, j, movewindow, d" - "$mod_SHIFT, up, movewindow, u" - "$mod_SHIFT, k, movewindow, u" - "$mod_SHIFT, right, movewindow, r" - "$mod_SHIFT, l, movewindow, r" - - "$mod_CTRL, left, resizeactive, -20 0" - "$mod_CTRL, h, resizeactive, -20 0" - "$mod_CTRL, down, resizeactive, 0 20" - "$mod_CTRL, j, resizeactive, 0 20" - "$mod_CTRL, up, resizeactive, 0 -20" - "$mod_CTRL, k, resizeactive, 0 -20" - "$mod_CTRL, right, resizeactive, 20 0" - "$mod_CTRL, l, resizeactive, 20 0" - - "$mod, Tab, cyclenext" - "$mod, Tab, bringactivetotop" - "$mod_SHIFT, Tab, cyclenext, prev" - "$mod_SHIFT, Tab, bringactivetotop" - - "$mod, f, fullscreen, 0" - "$mod, Space, togglefloating" - "$mod, Space, centerwindow" - "$mod, q, killactive" - - "CTRL_ALT, Delete, exit" - ]; - - bindm = [ - "$mod, mouse:272, movewindow" - "$mod, mouse:273, resizewindow" - ]; - - misc = { - "disable_hyprland_logo" = true; - "disable_splash_rendering" = true; - }; - - exec-once = cfg.initScript; - }; - }; - }; -} diff --git a/user/configs/stylix.nix b/user/configs/stylix.nix deleted file mode 100644 index eaf51a2..0000000 --- a/user/configs/stylix.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ config, lib, pkgs, ... }: - -let - cfg = config.stylix; -in -{ - options.stylix = { - wallpaper = lib.mkOption { - type = lib.types.path; - description = "The path to the wallpaper"; - }; - }; - - config = { - stylix = { - enable = true; - base16Scheme = "${pkgs.base16-schemes}/share/themes/da-one-sea.yaml"; - image = cfg.wallpaper; - }; - }; -} diff --git a/user/default.nix b/user/default.nix deleted file mode 100644 index 5596778..0000000 --- a/user/default.nix +++ /dev/null @@ -1,92 +0,0 @@ -{ config, inputs, lib, pkgs, ... }: - -let - wallpaper = ./wallpapers/clouds.png; - init = pkgs.pkgs.writeShellScriptBin "hyprland-init" '' - ${pkgs.swww}/bin/swww-daemon &> /tmp/swww.log & - - while ! swww query &> /dev/null; do - sleep 0.1 - done - - ${pkgs.swww}/bin/swww img ${wallpaper} - ''; - cfg = config.user; -in -{ - options.user = { - vars = lib.mkOption { - type = lib.types.attrs; - description = "Variables for the user"; - }; - - autologin = lib.mkOption { - type = lib.types.bool; - description = "Automatically log in the user on boot"; - default = false; - }; - }; - - config = { - users.users."${cfg.vars.user}" = { - isNormalUser = true; - createHome = true; - home = "/home/${cfg.vars.user}"; - description = cfg.vars.fullName; - hashedPassword = "***REMOVED***"; - extraGroups = [ "wheel" ]; - linger = true; - uid = 1000; - }; - - systemd.tmpfiles.rules = [ "d /persist/home/${cfg.vars.user} 0700 ${cfg.vars.user} users -" ]; - services.getty.autologinUser = lib.mkIf cfg.autologin cfg.vars.user; - programs.hyprland.enable = true; - - home-manager.users."${cfg.vars.user}" = { - imports = [ - inputs.impermanence.nixosModules.home-manager.impermanence - inputs.stylix.homeManagerModules.stylix - ./configs/stylix.nix - ./configs/hyprland.nix - ./configs/zsh.nix - ./configs/kitty.nix - ./configs/firefox.nix - ./configs/git.nix - ]; - - home = { - persistence."/persist/home/${cfg.vars.user}" = { - directories = [ - "Documents" - "Downloads" - "Music" - "Pictures" - "Videos" - "Templates" - "VMs" - "git" - ".mozilla" - ]; - files = [ - ".zsh_history" - ]; - allowOther = true; - }; - - packages = with pkgs; [ - rofi-wayland - swww - ]; - - stateVersion = "24.05"; - }; - - git.vars = cfg.vars; - hyprland.initScript = "${init}/bin/hyprland-init"; - stylix.wallpaper = wallpaper; - - systemd.user.startServices = "sd-switch"; - }; - }; -} diff --git a/user/nick.nix b/user/nick.nix deleted file mode 100644 index 841fc5d..0000000 --- a/user/nick.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - user = "nick"; - email = "nick@karaolidis.com"; - fullName = "Nikolaos Karaolidis"; -} diff --git a/user/scripts/hyprland-init.sh b/user/scripts/hyprland-init.sh deleted file mode 100644 index e69de29..0000000 diff --git a/user/secrets/.gitignore b/user/secrets/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/user/secrets/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/user/configs/firefox.nix b/users/common/configs/firefox.nix similarity index 100% rename from user/configs/firefox.nix rename to users/common/configs/firefox.nix diff --git a/users/common/configs/git.nix b/users/common/configs/git.nix new file mode 100644 index 0000000..d8ac829 --- /dev/null +++ b/users/common/configs/git.nix @@ -0,0 +1,6 @@ +{ + programs.git = { + enable = true; + lfs.enable = true; + }; +} diff --git a/users/common/configs/hyprland.nix b/users/common/configs/hyprland.nix new file mode 100644 index 0000000..53fda3c --- /dev/null +++ b/users/common/configs/hyprland.nix @@ -0,0 +1,64 @@ +{ + wayland.windowManager.hyprland = { + enable = true; + settings = { + "$mod" = "SUPER"; + "$term" = "kitty"; + + bind = [ + "$mod, Return, exec, $term" + "$mod, r, exec, rofi -show drun" + "$mod, b, exec, firefox" + + "$mod, left, movefocus, l" + "$mod, h, movefocus, l" + "$mod, down, movefocus, d" + "$mod, j, movefocus, d" + "$mod, up, movefocus, u" + "$mod, k, movefocus, u" + "$mod, right, movefocus, r" + "$mod, l, movefocus, r" + + "$mod_SHIFT, left, movewindow, l" + "$mod_SHIFT, h, movewindow, l" + "$mod_SHIFT, down, movewindow, d" + "$mod_SHIFT, j, movewindow, d" + "$mod_SHIFT, up, movewindow, u" + "$mod_SHIFT, k, movewindow, u" + "$mod_SHIFT, right, movewindow, r" + "$mod_SHIFT, l, movewindow, r" + + "$mod_CTRL, left, resizeactive, -20 0" + "$mod_CTRL, h, resizeactive, -20 0" + "$mod_CTRL, down, resizeactive, 0 20" + "$mod_CTRL, j, resizeactive, 0 20" + "$mod_CTRL, up, resizeactive, 0 -20" + "$mod_CTRL, k, resizeactive, 0 -20" + "$mod_CTRL, right, resizeactive, 20 0" + "$mod_CTRL, l, resizeactive, 20 0" + + "$mod, Tab, cyclenext" + "$mod, Tab, bringactivetotop" + "$mod_SHIFT, Tab, cyclenext, prev" + "$mod_SHIFT, Tab, bringactivetotop" + + "$mod, f, fullscreen, 0" + "$mod, Space, togglefloating" + "$mod, Space, centerwindow" + "$mod, q, killactive" + + "CTRL_ALT, Delete, exit" + ]; + + bindm = [ + "$mod, mouse:272, movewindow" + "$mod, mouse:273, resizewindow" + ]; + + misc = { + "disable_hyprland_logo" = true; + "disable_splash_rendering" = true; + }; + }; + }; +} diff --git a/user/configs/kitty.nix b/users/common/configs/kitty.nix similarity index 100% rename from user/configs/kitty.nix rename to users/common/configs/kitty.nix diff --git a/users/common/configs/stylix.nix b/users/common/configs/stylix.nix new file mode 100644 index 0000000..92fe8a1 --- /dev/null +++ b/users/common/configs/stylix.nix @@ -0,0 +1,3 @@ +{ + stylix.enable = true; +} diff --git a/user/configs/zsh.nix b/users/common/configs/zsh.nix similarity index 100% rename from user/configs/zsh.nix rename to users/common/configs/zsh.nix diff --git a/users/common/default.nix b/users/common/default.nix new file mode 100644 index 0000000..dcd2aa7 --- /dev/null +++ b/users/common/default.nix @@ -0,0 +1,95 @@ +{ config, inputs, lib, pkgs, ... }: + +let + normalUsers = lib.attrsets.filterAttrs (name: config: config.isNormalUser) config.users.users; +in +{ + imports = [ + inputs.home-manager.nixosModules.default + ./extra.nix + ]; + + programs = { + hyprland.enable = true; + fuse.userAllowOther = true; + dconf.enable = true; + }; + + home-manager = { + extraSpecialArgs = { inherit inputs; }; + backupFileExtension = "bak"; + sharedModules = [{ + imports = [ + inputs.impermanence.nixosModules.home-manager.impermanence + inputs.stylix.homeManagerModules.stylix + ./configs/stylix.nix + ./configs/hyprland.nix + ./configs/git.nix + ./configs/zsh.nix + ./configs/kitty.nix + ./configs/firefox.nix + ]; + + home = { + packages = with pkgs; [ + rofi-wayland + swww + ]; + + stateVersion = "24.05"; + }; + + systemd.user.startServices = "sd-switch"; + }]; + }; + + systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ] ++ lib.attrsets.mapAttrsToList (user: config: + "d /persist${config.home} 0700 ${user} users -" + ) normalUsers; + + home-manager.users = lib.attrsets.mapAttrs' (user: config: lib.attrsets.nameValuePair + (user) + (let + init = pkgs.pkgs.writeShellScriptBin "hyprland-init" '' + ${pkgs.swww}/bin/swww-daemon &> /tmp/swww.log & + + while ! swww query &> /dev/null; do + sleep 0.1 + done + + ${pkgs.swww}/bin/swww img ${config.wallpaper} + ''; + in + { + home.persistence."/persist${config.home}" = { + directories = [ + "Documents" + "Downloads" + "Music" + "Pictures" + "Videos" + "Templates" + "VMs" + "git" + ".mozilla" + ]; + files = [ + ".zsh_history" + ]; + allowOther = true; + }; + + programs.git = { + userName = config.fullName; + userEmail = config.email; + }; + + stylix = { + image = config.wallpaper; + base16Scheme = config.base16Scheme; + }; + + wayland.windowManager.hyprland.settings.exec-once = "${init}/bin/hyprland-init"; + }) + ) normalUsers; +} diff --git a/users/common/extra.nix b/users/common/extra.nix new file mode 100644 index 0000000..73867ab --- /dev/null +++ b/users/common/extra.nix @@ -0,0 +1,32 @@ +{ lib, ... }: + +let + userOptions = with lib; { config, ... }: { + options.email = mkOption { + type = types.nullOr types.str; + description = "Email address of the user."; + }; + + options.fullName = mkOption { + type = types.nullOr types.str; + description = "Full name of the user."; + }; + + options.wallpaper = mkOption { + type = types.path; + description = "Path to the user's wallpaper."; + }; + + options.base16Scheme = mkOption { + type = types.path; + description = "Base16 scheme to use for the user's color palette."; + }; + }; +in +{ + options = with lib; with types; { + users.users = mkOption { + type = attrsOf (submodule userOptions); + }; + }; +} diff --git a/users/nick/default.nix b/users/nick/default.nix new file mode 100644 index 0000000..2c4b225 --- /dev/null +++ b/users/nick/default.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: + +{ + imports = [ ../common ]; + + users.users.nick = { + isNormalUser = true; + home = "/home/nick"; + email = "nick@karaolidis.com"; + fullName = "Nikolaos Karaolidis"; + description = config.users.users.nick.fullName; + hashedPassword = "***REMOVED***"; + extraGroups = [ "wheel" ]; + linger = true; + uid = 1000; + wallpaper = ./wallpapers/clouds.png; + base16Scheme = "${pkgs.base16-schemes}/share/themes/da-one-sea.yaml"; + }; +} diff --git a/user/wallpapers/car.jpg b/users/nick/wallpapers/car.jpg similarity index 100% rename from user/wallpapers/car.jpg rename to users/nick/wallpapers/car.jpg diff --git a/user/wallpapers/cats.jpg b/users/nick/wallpapers/cats.jpg similarity index 100% rename from user/wallpapers/cats.jpg rename to users/nick/wallpapers/cats.jpg diff --git a/user/wallpapers/clouds.png b/users/nick/wallpapers/clouds.png similarity index 100% rename from user/wallpapers/clouds.png rename to users/nick/wallpapers/clouds.png diff --git a/user/wallpapers/girl.png b/users/nick/wallpapers/girl.png similarity index 100% rename from user/wallpapers/girl.png rename to users/nick/wallpapers/girl.png diff --git a/user/wallpapers/mountain.jpg b/users/nick/wallpapers/mountain.jpg similarity index 100% rename from user/wallpapers/mountain.jpg rename to users/nick/wallpapers/mountain.jpg diff --git a/user/wallpapers/plane.jpg b/users/nick/wallpapers/plane.jpg similarity index 100% rename from user/wallpapers/plane.jpg rename to users/nick/wallpapers/plane.jpg diff --git a/user/wallpapers/snow.jpg b/users/nick/wallpapers/snow.jpg similarity index 100% rename from user/wallpapers/snow.jpg rename to users/nick/wallpapers/snow.jpg