refactor(email-options): rename selfprivacy.email.subdomain to domain
This commit is contained in:
@@ -193,13 +193,13 @@ with lib;
|
|||||||
email = with lib; mkOption {
|
email = with lib; mkOption {
|
||||||
type = types.attrsOf (
|
type = types.attrsOf (
|
||||||
types.submodule (
|
types.submodule (
|
||||||
{ name, ... }: {
|
{ ... }: {
|
||||||
options = {
|
options = {
|
||||||
subdomain = mkOption {
|
domain = mkOption {
|
||||||
type = with types; strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
type = with types; strMatching "[A-Za-z0-9][A-Za-z0-9\-]{0,61}[A-Za-z0-9]";
|
||||||
example = "myservice";
|
example = "myservice.example.net";
|
||||||
default = config.sp.domain;
|
default = config.sp.domain;
|
||||||
description = "Email subdomain";
|
description = "Domain to send emails from";
|
||||||
};
|
};
|
||||||
|
|
||||||
systemdTargets = mkOption {
|
systemdTargets = mkOption {
|
||||||
|
@@ -23,7 +23,7 @@ let
|
|||||||
inherit (value) hashedPasswordFile sendOnly;
|
inherit (value) hashedPasswordFile sendOnly;
|
||||||
}
|
}
|
||||||
) sp.email;
|
) sp.email;
|
||||||
extraDomains = lib.mapAttrsToList (_: value: value.subdomain) sp.email;
|
extraDomains = lib.mapAttrsToList (_: value: value.domain) sp.email;
|
||||||
extraTargets = lib.mapAttrsToList (_: value: value.systemdTargets) sp.email;
|
extraTargets = lib.mapAttrsToList (_: value: value.systemdTargets) sp.email;
|
||||||
in
|
in
|
||||||
lib.mkIf sp.modules.simple-nixos-mailserver.enable (
|
lib.mkIf sp.modules.simple-nixos-mailserver.enable (
|
||||||
|
Reference in New Issue
Block a user