about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/configuration.nix25
1 files changed, 16 insertions, 9 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix
index ab47d46..4e0293c 100644
--- a/hosts/configuration.nix
+++ b/hosts/configuration.nix
@@ -59,15 +59,22 @@
 
   users.mutableUsers = false;
 
-  users.users.root.hashedPassword = secrets.root.hashed_password;
-  # Define a user account. Don't forget to set a password with ‘passwd’.
-  users.users.${user} = {
-    isNormalUser = true;
-    extraGroups = [ "wheel" "audio" "video" ]; # Enable ‘sudo’ for the user.
-    hashedPassword = secrets.baitinq.hashed_password;
-    openssh.authorizedKeys.keys = [
-      "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID99gQ/AgXhgwAjs+opsRXMbWpXFRT2aqAOUbN3DsrhQ (none)"
-    ];
+  users.users = {
+    "root" = {
+      hashedPassword = secrets.root.hashed_password;
+      openssh.authorizedKeys.keys = [
+        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID99gQ/AgXhgwAjs+opsRXMbWpXFRT2aqAOUbN3DsrhQ (none)"
+      ];
+    };
+
+    "${user}" = {
+      isNormalUser = true;
+      extraGroups = [ "wheel" "audio" "video" ]; # Enable ‘sudo’ for the user.
+      hashedPassword = secrets.baitinq.hashed_password;
+      openssh.authorizedKeys.keys = [
+        "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID99gQ/AgXhgwAjs+opsRXMbWpXFRT2aqAOUbN3DsrhQ (none)"
+      ];
+    };
   };
 
   environment.variables = {