From ed38b9699a3a6680eb323cfbe0f199295ce3e3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 3 May 2024 13:43:43 +0200 Subject: [PATCH] nixos/shells-environment: copy paths to the store again like before #276818 --- nixos/modules/config/shells-environment.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/config/shells-environment.nix b/nixos/modules/config/shells-environment.nix index f3f8eb182563..49aae5ab438d 100644 --- a/nixos/modules/config/shells-environment.nix +++ b/nixos/modules/config/shells-environment.nix @@ -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 {