From 170223fe642bba1b36181d2120ba0095c70de6eb Mon Sep 17 00:00:00 2001 From: Michishige Kaito Date: Sat, 26 May 2018 12:05:04 +0100 Subject: [PATCH] Handle attributes being derivations --- nixos/modules/services/security/oauth2_proxy.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/security/oauth2_proxy.nix b/nixos/modules/services/security/oauth2_proxy.nix index 433d97c2a7d76..96d78630e6d1b 100644 --- a/nixos/modules/services/security/oauth2_proxy.nix +++ b/nixos/modules/services/security/oauth2_proxy.nix @@ -72,6 +72,7 @@ let mapConfig = key: attr: if (!isNull attr && attr != []) then ( + if isDerivation attr then mapConfig key (toString attr) else if (builtins.typeOf attr) == "set" then concatStringsSep " " (mapAttrsToList (name: value: mapConfig (key + "-" + name) value) attr) else if (builtins.typeOf attr) == "list" then concatMapStringsSep " " (mapConfig key) attr else