diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-21 17:57:36 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-21 17:57:36 -0700 |
| commit | 5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d (patch) | |
| tree | 9f8d541e57956e7639b12801375ad91693a95b2c /profiles/admin-user/user.nix | |
| parent | move all profiles, modules, and flakes to top-level (diff) | |
| download | infra-5484afc2ce90ab7d2d33d1a9e822d497f44c4e5d.tar.gz | |
keep organizing into modules and profiles
Diffstat (limited to 'profiles/admin-user/user.nix')
| -rw-r--r-- | profiles/admin-user/user.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/profiles/admin-user/user.nix b/profiles/admin-user/user.nix new file mode 100644 index 0000000..e05ae6d --- /dev/null +++ b/profiles/admin-user/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; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi" + ]; + extraGroups = [ + "wheel" + "docker" + ]; + }; + }; +} |
