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 ++++++- nix/hosts/wildcat/configuration.nix | 1 - 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; -- cgit 1.4.1