diff options
author | Nico Heitmann <nico.heitmann01@gmx.de> | 2020-06-07 16:10:35 +0200 |
---|---|---|
committer | Nico Heitmann <nico.heitmann01@gmx.de> | 2020-06-07 16:52:27 +0200 |
commit | 2b694b1e9f69ba8053bb7006337b051154c44e86 (patch) | |
tree | fd5cd47d7780099f786c8db13dd21f97f91fd1d3 /nixos/modules/config | |
parent | 5ed0924e7b445df9b684e6e5c63e0a7eeaf2f845 (diff) | |
download | nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar.gz nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar.bz2 nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar.lz nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar.xz nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.tar.zst nixpkgs-2b694b1e9f69ba8053bb7006337b051154c44e86.zip |
nixos/krb5: output lists as multiple config entries
Fixes #89626
Diffstat (limited to 'nixos/modules/config')
-rw-r--r-- | nixos/modules/config/krb5/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/config/krb5/default.nix b/nixos/modules/config/krb5/default.nix index 85ecb8633a3..58477fafc2d 100644 --- a/nixos/modules/config/krb5/default.nix +++ b/nixos/modules/config/krb5/default.nix @@ -43,14 +43,15 @@ let indent = " "; - mkRelation = name: value: "${name} = ${mkVal value}"; + mkRelation = name: value: + if (isList value) then + concatMapStringsSep "\n" (mkRelation name) value + else "${name} = ${mkVal value}"; mkVal = value: if (value == true) then "true" else if (value == false) then "false" else if (isInt value) then (toString value) - else if (isList value) then - concatMapStringsSep " " mkVal value else if (isAttrs value) then let configLines = concatLists (map (splitString "\n") |