nixos/maddy: allow string paths for secrets to support optional EnvironmentFiles (#532602)
This commit is contained in:
@@ -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 = [ ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user