diff --git a/modules/hosts/soteria/soteria.nix b/modules/hosts/soteria/soteria.nix index a12a4d3..1ee7799 100644 --- a/modules/hosts/soteria/soteria.nix +++ b/modules/hosts/soteria/soteria.nix @@ -1,4 +1,4 @@ -{ inputs, ... }: +{ inputs, lib, ... }: let username = "john"; hostname = "soteria"; @@ -16,6 +16,19 @@ in # nixos.restic-envoy { networking.hostName = hostname; + + # Removes password for sudo + security.sudo-rs.extraRules = lib.mkAfter [ + { + users = [ username ]; + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; # nix.settings.build-dir = "/var/tmp/nix-build"; # systemd.tmpfiles.rules = [ # "d /var/tmp/nix-build 1777 root root -"