diff options
author | Michishige Kaito <me@mkaito.com> | 2018-05-26 12:05:04 +0100 |
---|---|---|
committer | Michishige Kaito <me@mkaito.com> | 2018-05-26 12:05:04 +0100 |
commit | 170223fe642bba1b36181d2120ba0095c70de6eb (patch) | |
tree | 377149ca23c0e1dcc5202acf3ec74cfb70f10a96 /nixos/modules/services/security | |
parent | 66aed8fd3825fa3176d29e62d7d1bb7d4429858f (diff) | |
download | nixlib-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.nix | 1 |
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 |