This commit is contained in:
iFargle 2023-12-13 08:44:16 +09:00
parent 703b3f0216
commit 341860a195
2 changed files with 14 additions and 1 deletions

View file

@ -1,5 +1,4 @@
{
nix.settings.trusted-users = [ "albert" ];
nix.buildMachines = [
{
hostName = "framework-server"; # Only availalbe on the Headscale network

View file

@ -17,4 +17,18 @@ in {
packages = [ pkgs.home-manager ];
openssh.authorizedKeys.keyFiles = [ ../../../keys/ssh/keys.txt ];
};
# Make this user trusted
nix.settings.trusted-users = [ "albert" ];
# No sudo password
security.sudo.extraRules = [
{ users = [ "albert" ];
commands = [
{ command = "ALL";
options = [ "NOPASSWD" ];
}
];
}
];
}