about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nix/hosts/nixos/user.nix7
-rw-r--r--nix/hosts/wildcat/configuration.nix1
2 files changed, 6 insertions, 2 deletions
diff --git a/nix/hosts/nixos/user.nix b/nix/hosts/nixos/user.nix
index dbd8057..c8f0f6a 100644
--- a/nix/hosts/nixos/user.nix
+++ b/nix/hosts/nixos/user.nix
@@ -4,11 +4,16 @@
     uid = 1000;
     isNormalUser = true;
     extraGroups = [
+      "git"
       "wheel"
-      "dialout" # Enable access to serial devices
     ];
     openssh.authorizedKeys.keys = [
       "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINBkozy+X96u5ciX766bJ/AyQ3xm1tXZTIr5+4PVFZFi"
     ];
   };
+
+  security.sudo.extraRules = [{
+    groups = [ "wheel" ];
+    commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
+  }];
 }
diff --git a/nix/hosts/wildcat/configuration.nix b/nix/hosts/wildcat/configuration.nix
index 14ab203..9163234 100644
--- a/nix/hosts/wildcat/configuration.nix
+++ b/nix/hosts/wildcat/configuration.nix
@@ -93,7 +93,6 @@ in
     group = "git";
   };
 
-
   services.nginx = {
     enable = true;