From 56e67018d618ad69b6be95380c9dde4136d827da Mon Sep 17 00:00:00 2001 From: xinyangli Date: Wed, 15 Nov 2023 08:10:35 +0000 Subject: [PATCH] massicot: passwordless sudo for user xin --- machines/massicot/default.nix | 6 ++++++ machines/massicot/services.nix | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 = {