aboutsummaryrefslogtreecommitdiff
path: root/profiles/admin-user/user.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/admin-user/user.nix')
-rw-r--r--profiles/admin-user/user.nix22
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"
+ ];
+ };
+ };
+}