diff options
Diffstat (limited to 'modules/user.nix')
| -rw-r--r-- | modules/user.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/user.nix b/modules/user.nix new file mode 100644 index 0000000..8a9dafb --- /dev/null +++ b/modules/user.nix @@ -0,0 +1,24 @@ +{ + adminUser, + pkgs, + ... +}: +{ + nix.settings.trusted-users = [ adminUser.name ]; + users = { + users.${adminUser.name} = { + inherit (adminUser) uid; + shell = pkgs.fish; + isNormalUser = true; + hashedPassword = "$6$Llw8m62nKMLLN9mm$3.a4CKUFlqwkG8vjBryLlBNwTwgH63vpg2nhYwRoQzG76Q91vTXnlYDujS4G5yGrWoatkKZx5epCx4/NAvRh2/"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" + ]; + extraGroups = [ + "wheel" + ]; + }; + }; + + programs.fish.enable = true; +} |
