portunus: fix setting names
This commit is contained in:
parent
0f25b2adf0
commit
1de01ed132
|
@ -11,13 +11,13 @@ in
|
||||||
description = lib.mdDoc "Whether to add a hosts entry for the portunus domain pointing to externalIp";
|
description = lib.mdDoc "Whether to add a hosts entry for the portunus domain pointing to externalIp";
|
||||||
};
|
};
|
||||||
|
|
||||||
externalIp4 = lib.mkOption {
|
internalIp4 = lib.mkOption {
|
||||||
type = with lib.types; nullOr str;
|
type = with lib.types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc "Internal IPv4 of portunus instance. This is used in the addToHosts option.";
|
description = lib.mdDoc "Internal IPv4 of portunus instance. This is used in the addToHosts option.";
|
||||||
};
|
};
|
||||||
|
|
||||||
externalIp6 = lib.mkOption {
|
internalIp6 = lib.mkOption {
|
||||||
type = with lib.types; nullOr str;
|
type = with lib.types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
description = lib.mdDoc "Internal IPv6 of portunus instance. This is used in the addToHosts option.";
|
description = lib.mdDoc "Internal IPv6 of portunus instance. This is used in the addToHosts option.";
|
||||||
|
@ -32,8 +32,8 @@ in
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
networking.hosts = lib.mkIf cfg.addToHosts {
|
networking.hosts = lib.mkIf cfg.addToHosts {
|
||||||
${cfg.externalIp4} = [ cfg.domain ];
|
${cfg.internalIp4} = [ cfg.domain ];
|
||||||
${cfg.externalIp6} = [ cfg.domain ];
|
${cfg.internalIp6} = [ cfg.domain ];
|
||||||
};
|
};
|
||||||
|
|
||||||
security.ldap = lib.mkIf cfg.ldapPreset {
|
security.ldap = lib.mkIf cfg.ldapPreset {
|
||||||
|
|
Loading…
Reference in New Issue