summary refs log tree commit diff
path: root/nixos/modules/services/security
diff options
context:
space:
mode:
authorMichishige Kaito <me@mkaito.com>2018-05-26 12:05:04 +0100
committerMichishige Kaito <me@mkaito.com>2018-05-26 12:05:04 +0100
commit170223fe642bba1b36181d2120ba0095c70de6eb (patch)
tree377149ca23c0e1dcc5202acf3ec74cfb70f10a96 /nixos/modules/services/security
parent66aed8fd3825fa3176d29e62d7d1bb7d4429858f (diff)
downloadnixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar.gz
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar.bz2
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar.lz
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar.xz
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.tar.zst
nixlib-170223fe642bba1b36181d2120ba0095c70de6eb.zip
Handle attributes being derivations
Diffstat (limited to 'nixos/modules/services/security')
-rw-r--r--nixos/modules/services/security/oauth2_proxy.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/security/oauth2_proxy.nix b/nixos/modules/services/security/oauth2_proxy.nix
index 433d97c2a7d7..96d78630e6d1 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