diff options
Diffstat (limited to '')
-rw-r--r-- | modules/by-name/ma/mastodon/module.nix | 6 |
1 files changed, 5 insertions, 1 deletions
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"; |