Skip to content

Commit

Permalink
Merge pull request #41098 from mkaito/oauth2_proxy
Browse files Browse the repository at this point in the history
oauth2_proxy: Handle attributes being derivations
  • Loading branch information
lukateras authored Jun 18, 2018
2 parents e0e505d + 170223f commit 5e5bdfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/security/oauth2_proxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5e5bdfa

Please sign in to comment.