diff options
author | Silas Schöffel <sils@sils.li> | 2025-01-25 22:05:41 +0100 |
---|---|---|
committer | Silas Schöffel <sils@sils.li> | 2025-01-25 22:06:56 +0100 |
commit | 7e16fa24fce05962c3a741df8b58e82507ae8bfe (patch) | |
tree | 85a1bd540d31006c1cc65f62ec7bb72d8661d9a2 /modules/by-name/ma | |
parent | feat(miniflux): make secrets configurable (diff) | |
download | nixos-server-7e16fa24fce05962c3a741df8b58e82507ae8bfe.zip |
feat(mastodon): make secrets configurable
Diffstat (limited to '')
-rw-r--r-- | hosts/by-name/server3/secrets/mastodon/mail.age (renamed from modules/by-name/ma/mastodon/mail.age) | 0 | ||||
-rw-r--r-- | modules/by-name/ma/mastodon/module.nix | 6 |
2 files changed, 5 insertions, 1 deletions
diff --git a/modules/by-name/ma/mastodon/mail.age b/hosts/by-name/server3/secrets/mastodon/mail.age index 882ade9..882ade9 100644 --- a/modules/by-name/ma/mastodon/mail.age +++ b/hosts/by-name/server3/secrets/mastodon/mail.age diff --git a/modules/by-name/ma/mastodon/module.nix b/modules/by-name/ma/mastodon/module.nix index 5645014..895428d 100644 --- a/modules/by-name/ma/mastodon/module.nix +++ b/modules/by-name/ma/mastodon/module.nix @@ -25,10 +25,14 @@ in { default = null; example = "vhack.eu"; }; + mailPwFile = lib.mkOption { + type = lib.types.path; + description = "The age encrypted mail password file passed to agenix"; + }; }; config = lib.mkIf cfg.enable { age.secrets.mastodonMail = { - file = ./mail.age; + file = cfg.mailPwFile; mode = "700"; owner = "mastodon"; group = "mastodon"; |