From e528d17e5e0fd4498a40f9c9a6e3a28789820b58 Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 17 Jan 2024 16:19:14 -0800 Subject: [PATCH] Default password-file to null --- mastodon-container.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 224afe3..cc61e7c 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -64,6 +64,7 @@ in { password-file = mkOption { type = nullOr str; description = "Path to file containing SMTP password"; + default = null; }; from-address = mkOption { @@ -106,7 +107,8 @@ in { inherit (cfg.smtp) host port user; fromAddress = cfg.smtp.from-address; authenticate = !isNull cfg.smtp.password-file; - passwordFile = cfg.smtp.password-file; + passwordFile = mkIf (!isNull cfg.smtp.password-file) + cfg.smtp.password-file; }; redis.createLocally = true; database.createLocally = true;