diff options
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"; |