Personal-use NixOS configuration

Split `encode42` user into its own `user` directory

+51 -29
+13
homes/encode42/common/default.nix
··· 1 + { 2 + imports = [ 3 + ./home-manager.nix 4 + 5 + ./fastfetch.nix 6 + ./fish.nix 7 + ./git.nix 8 + 9 + ./bat.nix 10 + ./eza.nix 11 + ./xh.nix 12 + ]; 13 + }
+5
homes/encode42/common/home-manager.nix
··· 1 + { 2 + programs.home-manager = { 3 + enable = true; 4 + }; 5 + }
+2 -2
hosts/decryption/homes/encode42.nix
··· 7 7 8 8 { 9 9 imports = [ 10 - (flakeRoot + /homes/encode42/common/fastfetch.nix) 11 - (flakeRoot + /homes/encode42/common/fish.nix) 10 + (flakeRoot + /homes/encode42/common) 11 + 12 12 (flakeRoot + /homes/encode42/common/github.nix) 13 13 (flakeRoot + /homes/encode42/common/direnv.nix) 14 14
+2 -10
hosts/decryption/users/encode42.nix
··· 7 7 8 8 { 9 9 imports = [ 10 - (flakeRoot + /packages/common/fish.nix) 11 - (flakeRoot + /packages/common/git.nix) 10 + (flakeRoot + /users/encode42/common) 11 + 12 12 (flakeRoot + /packages/common/yubikey.nix) 13 13 14 14 (flakeRoot + /packages/desktop/gnome/goldwarden.nix) ··· 17 17 (flakeRoot + /packages/desktop/steam.nix) 18 18 ]; 19 19 20 - users.users.encode42 = { 21 - isNormalUser = true; 22 - 23 - shell = pkgs.fish; 24 - }; 25 - 26 20 home-manager.users.encode42 = { 27 21 imports = [ 28 22 ../homes/encode42.nix 29 23 ]; 30 - 31 - programs.home-manager.enable = true; 32 24 33 25 home.stateVersion = "24.05"; 34 26 };
+2 -6
hosts/encryption/homes/encode42.nix
··· 7 7 8 8 { 9 9 imports = [ 10 - (flakeRoot + /homes/encode42/common/fastfetch.nix) 11 - (flakeRoot + /homes/encode42/common/fish.nix) 10 + (flakeRoot + /homes/encode42/common) 11 + 12 12 (flakeRoot + /homes/encode42/common/github.nix) 13 13 (flakeRoot + /homes/encode42/common/direnv.nix) 14 - 15 - (flakeRoot + /homes/encode42/common/bat.nix) 16 - (flakeRoot + /homes/encode42/common/eza.nix) 17 - (flakeRoot + /homes/encode42/common/xh.nix) 18 14 19 15 (flakeRoot + /homes/encode42/common/imagemagik.nix) 20 16
+2 -10
hosts/encryption/users/encode42.nix
··· 7 7 8 8 { 9 9 imports = [ 10 - (flakeRoot + /packages/common/fish.nix) 11 - (flakeRoot + /packages/common/git.nix) 10 + (flakeRoot + /users/encode42/common) 11 + 12 12 (flakeRoot + /packages/common/yubikey.nix) 13 13 14 14 (flakeRoot + /packages/desktop/gnome/goldwarden.nix) ··· 18 18 (flakeRoot + /packages/desktop/steam.nix) 19 19 ]; 20 20 21 - users.users.encode42 = { 22 - isNormalUser = true; 23 - 24 - shell = pkgs.fish; 25 - }; 26 - 27 21 home-manager.users.encode42 = { 28 22 imports = [ 29 23 ../homes/encode42.nix 30 24 ]; 31 - 32 - programs.home-manager.enable = true; 33 25 34 26 home.stateVersion = "24.05"; 35 27 };
+2 -1
readme.md
··· 3 3 - `hardware`: Specialized hardware configuration 4 4 - `homes`: User-owned home-manager directories 5 5 - `hosts`: Machine configuration 6 - - `users`: Users present on the system 6 + - `users`: Machine-owned users on the machine 7 7 - `homes`: User-owned home-manager configurations 8 8 - `lib`: Helper functions 9 9 - `modules`: System modules and relevant configuration 10 10 - `packages`: Program package configuration 11 + - `users`: Machine-owned common user configuration 11 12 12 13 Useful resources: 13 14 - [Disko Quickstart](https://github.com/nix-community/disko/blob/master/docs/quickstart.md)
+14
users/encode42/common/default.nix
··· 1 + { 2 + flakeRoot, 3 + pkgs, 4 + ... 5 + }: 6 + 7 + { 8 + imports = [ 9 + ./user.nix 10 + 11 + (flakeRoot + /packages/common/fish.nix) 12 + (flakeRoot + /packages/common/git.nix) 13 + ]; 14 + }
+9
users/encode42/common/user.nix
··· 1 + { pkgs, ... }: 2 + 3 + { 4 + users.users.encode42 = { 5 + isNormalUser = true; 6 + 7 + shell = pkgs.fish; 8 + }; 9 + }