From 253c75a5c8376d5fddbcdbaf50c9abc56e784a8e Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 13 Sep 2024 11:52:52 -0700 Subject: add fcuny to git + sudo access --- nix/hosts/nixos/user.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nix/hosts/nixos/user.nix') 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" ]; }]; + }]; } -- cgit 1.4.1