portunus: fix setting names

This commit is contained in:
Sandro - 2023-02-23 00:34:37 +01:00
parent 0f25b2adf0
commit 1de01ed132
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 4 deletions

View File

@ -11,13 +11,13 @@ in
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;
default = null;
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;
default = null;
description = lib.mdDoc "Internal IPv6 of portunus instance. This is used in the addToHosts option.";
@ -32,8 +32,8 @@ in
config = {
networking.hosts = lib.mkIf cfg.addToHosts {
${cfg.externalIp4} = [ cfg.domain ];
${cfg.externalIp6} = [ cfg.domain ];
${cfg.internalIp4} = [ cfg.domain ];
${cfg.internalIp6} = [ cfg.domain ];
};
security.ldap = lib.mkIf cfg.ldapPreset {