nixos/maddy: allow string paths for secrets to support optional EnvironmentFiles (#532602)

This commit is contained in:
Nick Cao
2026-06-18 18:05:52 +00:00
committed by GitHub
+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 = [ ];
};