Compare commits
4 Commits
700ac98266
...
email-opti
Author | SHA1 | Date | |
---|---|---|---|
3e82adf916
|
|||
de446fe4f7
|
|||
46af6890e1
|
|||
111cf30542
|
@@ -203,7 +203,7 @@ with lib;
|
||||
};
|
||||
|
||||
systemdTargets = mkOption {
|
||||
type = with types; listOf (strMatchig "[a-zA-Z0-9@%:_.\-]+[.](service|socket|device|mount|automount|swap|target|path|timer|scope|slice)");
|
||||
type = with types; listOf (strMatching "[a-zA-Z0-9@%:_.\-]+[.](service|socket|device|mount|automount|swap|target|path|timer|scope|slice)");
|
||||
default = [];
|
||||
example = [ "generate-mastodon-email-password.service" ];
|
||||
description = "Systemd target which generates password file.";
|
||||
|
@@ -22,9 +22,9 @@ let
|
||||
_: value: {
|
||||
inherit (value) hashedPasswordFile sendOnly;
|
||||
}
|
||||
) sp.email;
|
||||
extraDomains = lib.mapAttrsToList (_: value: "${value.subdomain}.${sp.domain}") sp.email;
|
||||
extraTargets = lib.mapAttrsToList (_: value: value.systemdTargets) sp.email;
|
||||
) config.selfprivacy.email;
|
||||
extraDomains = lib.mapAttrsToList (_: value: "${value.subdomain}.${sp.domain}") config.selfprivacy.email;
|
||||
extraTargets = lib.mapAttrsToList (_: value: value.systemdTargets) config.selfprivacy.email;
|
||||
in
|
||||
lib.mkIf sp.modules.simple-nixos-mailserver.enable (
|
||||
lib.mkMerge [
|
||||
|
Reference in New Issue
Block a user