nixos/maddy: allow string paths for secrets to support optional EnvironmentFiles

This commit is contained in:
Tim van Herpen
2026-06-17 10:21:15 +02:00
parent bd431f0696
commit 09ff9915ad
+3 -1
View File
@@ -350,11 +350,13 @@ in
};
secrets = lib.mkOption {
type = with lib.types; listOf path;
type = with lib.types; listOf (either str path);
description = ''
A list of files containing the various secrets. Should be in the format
expected by systemd's `EnvironmentFile` directory. Secrets can be
referenced in the format `{env:VAR}`.
Paths can be prefixed with `-` to ignore errors if the file does not exist.
'';
default = [ ];
};