diff --git a/hosts/vps/configuration.nix b/hosts/vps/configuration.nix index 1bba2d2..596a4d9 100644 --- a/hosts/vps/configuration.nix +++ b/hosts/vps/configuration.nix @@ -45,6 +45,18 @@ }; image.modules.linode = { }; networking.hostName = "vps"; + security.sudo-rs.extraRules = [ + { + users = [ "nixremote" ]; + commands = [ + { + command = "/run/current-system/sw/bin/nixos-rebuild"; + options = [ "NOPASSWD" ]; + } + ]; + } + ]; + services.openssh.ports = [ 3456 ]; sops.age = { generateKey = true; keyFile = "/var/lib/sops-nix/key.txt";