From cde03e66f80a6ec4e1c6e4b2bd50cd135640bf59 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 6 Feb 2022 12:59:50 -0500 Subject: [PATCH] hetzner: sudo pass --- hosts/hetzner/ax101.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/hetzner/ax101.nix b/hosts/hetzner/ax101.nix index 7f951e3..77c7597 100644 --- a/hosts/hetzner/ax101.nix +++ b/hosts/hetzner/ax101.nix @@ -119,6 +119,17 @@ isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ]; }; + security.sudo.extraRules = [ + { + users = [ "srid" ]; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions