nixos/shells-environment: allow int and float in environment variables
This commit is contained in:
parent
418cc44106
commit
c5371710de
|
@ -42,8 +42,8 @@ in
|
||||||
strings. The latter is concatenated, interspersed with colon
|
strings. The latter is concatenated, interspersed with colon
|
||||||
characters.
|
characters.
|
||||||
'';
|
'';
|
||||||
type = with types; attrsOf (oneOf [ (listOf str) str path ]);
|
type = with types; attrsOf (oneOf [ (listOf (oneOf [ float int str ])) float int str path ]);
|
||||||
apply = mapAttrs (n: v: if isList v then concatStringsSep ":" v else "${v}");
|
apply = mapAttrs (n: v: if isList v then concatMapStringsSep ":" toString v else toString v);
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.profiles = mkOption {
|
environment.profiles = mkOption {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user