mirror of
https://github.com/SuperSandro2000/nixos-modules.git
synced 2024-06-04 23:39:24 +02:00
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";
|
||||
};
|
||||
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user