From 1de01ed1323441eb508bdc6f4c1aca6797f88381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 23 Feb 2023 00:34:37 +0100 Subject: [PATCH] portunus: fix setting names --- modules/portunus.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/portunus.nix b/modules/portunus.nix index 82690cb..195af71 100644 --- a/modules/portunus.nix +++ b/modules/portunus.nix @@ -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 {