nixos/shells-environment: copy paths to the store again like before #276818

This commit is contained in:
Sandro Jäckel 2024-05-03 13:43:43 +02:00
parent 21202fe8a4
commit ed38b9699a
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -43,7 +43,9 @@ in
characters.
'';
type = with types; attrsOf (oneOf [ (listOf (oneOf [ int str ])) int str path ]);
apply = mapAttrs (n: v: if isList v then concatMapStringsSep ":" toString v else toString v);
apply = let
toStr = v: if isPath v then "${v}" else toString v;
in mapAttrs (n: v: if isList v then concatMapStringsSep ":" toStr v else toStr v);
};
environment.profiles = mkOption {