Make secret path configurable (mainly for container support).
'/secret/hostName' is still required.
This commit is contained in:
parent
7d70e000ce
commit
fd14a260c0
8 changed files with 18 additions and 11 deletions
|
@ -9,7 +9,7 @@ mkIf (elem "mailserver" config.machine.services) {
|
|||
mkUser = user: rec {
|
||||
name = "${user.name}@${domain}";
|
||||
value = {
|
||||
hashedPassword = (fileContents "/secret/${user.name}.mail");
|
||||
hashedPassword = (fileContents "${config.machine.secretPath}/${user.name}.mail");
|
||||
aliases = [ "${user.name}@mail.${domain}" ] ++ (flatten (map mkFqdnAlias user.aliases));
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue