diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-12-30 19:02:53 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-12-30 19:02:53 -0800 |
| commit | dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236 (patch) | |
| tree | b57889c0d611f11bdecba29c7a777c6100ba92df /profiles/users/admin-user.nix | |
| parent | include relevant programs in work profile (diff) | |
| download | infra-dacf64ca7fd6d6d2cf927c709a74cb7adc8e6236.tar.gz | |
add back some abstractions related to user management
Diffstat (limited to 'profiles/users/admin-user.nix')
| -rw-r--r-- | profiles/users/admin-user.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/profiles/users/admin-user.nix b/profiles/users/admin-user.nix new file mode 100644 index 0000000..1471ef7 --- /dev/null +++ b/profiles/users/admin-user.nix @@ -0,0 +1,22 @@ +{ + adminUser, + pkgs, + ... +}: +{ + nix.settings.trusted-users = [ adminUser.name ]; + + users.users.${adminUser.name} = { + inherit (adminUser) uid; + shell = pkgs.fish; + isNormalUser = true; + hashedPassword = "$y$j9T$U3mXpCzXC1VUp8wV5snJz/$32vTk0KwVXvP/jLO13nMlGPHy0nCe4ZtebdvqU4hwmD"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" + ]; + extraGroups = [ + "wheel" + "docker" + ]; + }; +} |
