refactor(email-options): rename selfprivacy.email.subdomain to domain
This commit is contained in:
@@ -193,13 +193,13 @@ with lib;
|
||||
email = with lib; mkOption {
|
||||
type = types.attrsOf (
|
||||
types.submodule (
|
||||
{ name, ... }: {
|
||||
{ ... }: {
|
||||
options = {
|
||||
subdomain = mkOption {
|
||||
domain = mkOption {
|
||||
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;
|
||||
description = "Email subdomain";
|
||||
description = "Domain to send emails from";
|
||||
};
|
||||
|
||||
systemdTargets = mkOption {
|
||||
|
@@ -23,7 +23,7 @@ let
|
||||
inherit (value) hashedPasswordFile sendOnly;
|
||||
}
|
||||
) 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;
|
||||
in
|
||||
lib.mkIf sp.modules.simple-nixos-mailserver.enable (
|
||||
|
Reference in New Issue
Block a user