about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-09-13 11:52:52 -0700
committerFranck Cuny <franck@fcuny.net>2024-09-13 11:52:52 -0700
commit253c75a5c8376d5fddbcdbaf50c9abc56e784a8e (patch)
tree18748269bf62fb14808f48f68e9cfdec17624053 /nix
parentwe need a state version now for Macos (diff)
downloadworld-253c75a5c8376d5fddbcdbaf50c9abc56e784a8e.tar.gz
add fcuny to git + sudo access
Diffstat (limited to 'nix')
-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;