diff --git a/machines/massicot/default.nix b/machines/massicot/default.nix index 8dd59d5..c502312 100644 --- a/machines/massicot/default.nix +++ b/machines/massicot/default.nix @@ -45,5 +45,11 @@ ]; hashedPassword = "$y$j9T$JOJn97hZndiDamUmmT.iq.$ue7gNZz/b14ur8GhyutOCvFjsv.3rcsHmk7m.WRk6u7"; }; + + security.sudo.extraRules = [ + { users = [ "xin" ]; + commands = [ { command = "ALL"; options = [ "NOPASSWD" ]; } ]; + } + ]; } diff --git a/machines/massicot/services.nix b/machines/massicot/services.nix index 3fee0e6..6574466 100644 --- a/machines/massicot/services.nix +++ b/machines/massicot/services.nix @@ -52,9 +52,8 @@ in }; }; - services.gitea = { + services.forgejo = { enable = true; - package = pkgs.forgejo; settings = { service.DISABLE_REGISTRATION = true; server = {