massicot: passwordless sudo for user xin

This commit is contained in:
xinyangli 2023-11-15 08:10:35 +00:00
parent add25d866d
commit 56e67018d6
2 changed files with 7 additions and 2 deletions

View file

@ -45,5 +45,11 @@
];
hashedPassword = "$y$j9T$JOJn97hZndiDamUmmT.iq.$ue7gNZz/b14ur8GhyutOCvFjsv.3rcsHmk7m.WRk6u7";
};
security.sudo.extraRules = [
{ users = [ "xin" ];
commands = [ { command = "ALL"; options = [ "NOPASSWD" ]; } ];
}
];
}

View file

@ -52,9 +52,8 @@ in
};
};
services.gitea = {
services.forgejo = {
enable = true;
package = pkgs.forgejo;
settings = {
service.DISABLE_REGISTRATION = true;
server = {