diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 4668552..c2eae03 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -229,9 +229,17 @@ acceptTerms = true; defaults.email = "thilo.hohlt@tutanota.com"; }; - sudo.extraConfig = '' - %wheel ALL=(ALL) NOPASSWD: ALL, SETENV: ALL - ''; + sudo.extraRules = [ + { + users = [ "thiloho" ]; + commands = [ + { + command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; }; systemd.services = {