diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-09-27 23:08:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-27 23:08:51 +0100 |
commit | 2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b (patch) | |
tree | 39ea9b446cef78e0d6c27c86b01c4d21565fbba3 /nixos | |
parent | b39c42d5d0d2b71bbc5c073705cfbd0b6b87bc9a (diff) | |
parent | dd50575d5a92eaf6cd9568ee53a86add0fe3aa7a (diff) | |
download | nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar.gz nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar.bz2 nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar.lz nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar.xz nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.tar.zst nixlib-2b8cba2ff5af8237e1ad9e273dc21574c1f6af9b.zip |
Merge pull request #29874 from mbrgm/znc-fix
znc: fix openFirewall option
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/znc.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nixos/modules/services/networking/znc.nix b/nixos/modules/services/networking/znc.nix index 763843fdec00..3d9cec46a582 100644 --- a/nixos/modules/services/networking/znc.nix +++ b/nixos/modules/services/networking/znc.nix @@ -212,6 +212,14 @@ in ''; }; + openFirewall = mkOption { + type = types.bool; + default = false; + description = '' + Whether to open ports in the firewall for ZNC. + ''; + }; + zncConf = mkOption { default = ""; example = "See: http://wiki.znc.in/Configuration"; @@ -276,14 +284,6 @@ in ''; }; - openFirewall = mkOption { - type = types.bool; - default = false; - description = '' - Whether to open ports in the firewall for ZNC. - ''; - }; - passBlock = mkOption { example = defaultPassBlock; type = types.string; @@ -359,7 +359,7 @@ in config = mkIf cfg.enable { networking.firewall = mkIf cfg.openFirewall { - allowedTCPPorts = [ cfg.port ]; + allowedTCPPorts = [ cfg.confOptions.port ]; }; systemd.services.znc = { |