root logic

This commit is contained in:
Danilo Reyes
2026-02-04 06:34:40 -06:00
parent 3f13527e51
commit ba4cf6c86b

View File

@@ -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";