aboutsummaryrefslogtreecommitdiff
path: root/nix/hosts/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nix/hosts/nixos')
-rw-r--r--nix/hosts/nixos/user.nix7
1 files changed, 6 insertions, 1 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" ]; }];
+ }];
}