From 039fc37f9c7eac5d7f648b7fa21227726cb39319 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Sat, 20 Oct 2018 20:36:18 +0200 Subject: [PATCH] nixos/znc: Fix confOptions.extraZncConf being applied to wrong section This bug was introduced in https://github.com/NixOS/nixpkgs/pull/41467 --- nixos/modules/services/networking/znc/options.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/znc/options.nix b/nixos/modules/services/networking/znc/options.nix index 505ebb3bf0a..29d16e20318 100644 --- a/nixos/modules/services/networking/znc/options.nix +++ b/nixos/modules/services/networking/znc/options.nix @@ -254,8 +254,9 @@ in listToAttrs (map (n: nameValuePair "#${n}" (mkDefault {})) net.channels); extraConfig = if net.extraConf == "" then mkDefault null else net.extraConf; }) c.networks; - extraConfig = [ c.passBlock ] ++ optional (c.extraZncConf != "") c.extraZncConf; + extraConfig = [ c.passBlock ]; }; + extraConfig = optional (c.extraZncConf != "") c.extraZncConf; }; };