diff --git a/hosts/vps1/services/git.nix b/hosts/vps1/services/git.nix index d43582b..4e77e31 100644 --- a/hosts/vps1/services/git.nix +++ b/hosts/vps1/services/git.nix @@ -36,7 +36,6 @@ in enable = true; inherit stateDir; inherit customDir; - mailerPasswordFile = config.sops.secrets."forgejo/email_password".path; database = { type = "postgres"; createDatabase = true; @@ -111,9 +110,12 @@ in PORT = 993; USE_TLS = true; USERNAME = "forgejo@${rootDomain}"; - PASSWORD = "#mailerpass#"; }; }; + secrets = { + "email.incoming".PASSWORD = config.sops.secrets."forgejo/email_password".path; + mailer.PASSWD = config.sops.secrets."forgejo/email_password".path; + }; }; sops.secrets."forgejo/email_password" = sops_opts;