diff options
| -rw-r--r-- | odin.nix | 9 | ||||
| -rw-r--r-- | users.nix | 3 |
2 files changed, 11 insertions, 1 deletions
| @@ -8,6 +8,7 @@ | |||
| 8 | imports = | 8 | imports = |
| 9 | [ # Include the results of the hardware scan. | 9 | [ # Include the results of the hardware scan. |
| 10 | ./odin/hw.nix | 10 | ./odin/hw.nix |
| 11 | ./users.nix | ||
| 11 | ]; | 12 | ]; |
| 12 | 13 | ||
| 13 | # Use the GRUB 2 boot loader. | 14 | # Use the GRUB 2 boot loader. |
| @@ -46,10 +47,16 @@ | |||
| 46 | ]; | 47 | ]; |
| 47 | }; | 48 | }; |
| 48 | 49 | ||
| 50 | users.extraUsers.root = let | ||
| 51 | template = import ./users/gkleen.nix; | ||
| 52 | in { | ||
| 53 | inherit (template) shell; | ||
| 54 | openssh.authorizedKeys.keyFiles = template.openssh.authorizedKeys.keyFiles; | ||
| 55 | }; | ||
| 56 | |||
| 49 | # This value determines the NixOS release with which your system is to be | 57 | # This value determines the NixOS release with which your system is to be |
| 50 | # compatible, in order to avoid breaking some software such as database | 58 | # compatible, in order to avoid breaking some software such as database |
| 51 | # servers. You should change this only after NixOS release notes say you | 59 | # servers. You should change this only after NixOS release notes say you |
| 52 | # should. | 60 | # should. |
| 53 | system.stateVersion = "18.09"; # Did you read the comment? | 61 | system.stateVersion = "18.09"; # Did you read the comment? |
| 54 | |||
| 55 | } | 62 | } |
| @@ -19,6 +19,9 @@ let | |||
| 19 | "sgoebels" = import ./users/sgoebels.nix; | 19 | "sgoebels" = import ./users/sgoebels.nix; |
| 20 | "mtrinh" = import ./users/mtrinh.nix; | 20 | "mtrinh" = import ./users/mtrinh.nix; |
| 21 | }; | 21 | }; |
| 22 | odin = { | ||
| 23 | "mherold" = import ./users/mherold.nix; | ||
| 24 | }; | ||
| 22 | }; | 25 | }; |
| 23 | host = config.networking.hostName; | 26 | host = config.networking.hostName; |
| 24 | in { | 27 | in { |
