diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2023-12-26 01:55:00 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2024-04-17 22:36:19 +0200 |
commit | c5371710de5d244b45e0c3e689e3afef1dddf990 (patch) | |
tree | efad3ba76539d4aa4b1e177a2aedab06b2ebe141 /nixos | |
parent | 418cc441066ffa3b9452de100fa7aa97fc2867c6 (diff) |
nixos/shells-environment: allow int and float in environment variables
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/config/shells-environment.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/config/shells-environment.nix b/nixos/modules/config/shells-environment.nix index ca2e911597296..2c19fb8a029d3 100644 --- a/nixos/modules/config/shells-environment.nix +++ b/nixos/modules/config/shells-environment.nix @@ -42,8 +42,8 @@ in strings. The latter is concatenated, interspersed with colon characters. ''; - type = with types; attrsOf (oneOf [ (listOf str) str path ]); - apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else "${v}"); + type = with types; attrsOf (oneOf [ (listOf (oneOf [ float int str ])) float int str path ]); + apply = mapAttrs (n: v: if isList v then concatMapStringsSep ":" toString v else toString v); }; environment.profiles = mkOption { |