From 19813ee0b17880d67724f65b54ce07d06290bd2f Mon Sep 17 00:00:00 2001 From: ediblerope Date: Fri, 15 May 2026 22:33:38 +0100 Subject: [PATCH] --- settings/stylix.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/settings/stylix.nix b/settings/stylix.nix index 15cf2d2..c5cfca8 100644 --- a/settings/stylix.nix +++ b/settings/stylix.nix @@ -83,20 +83,16 @@ papirusDark = pkgs.runCommand "papirus-dark-${closestPfColor}" { nativeBuildInputs = [ pkgs.papirus-folders ]; } '' - # Work in a fully writable temp tree so papirus-folders can find and - # modify the theme without fighting the nix sandbox path structure. - tmpdata=$(mktemp -d) - mkdir -p $tmpdata/icons - cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark $tmpdata/icons/ - chmod -R u+w $tmpdata/icons/Papirus-Dark + # Copy theme to a writable temp dir and pass its absolute path to + # papirus-folders so it bypasses XDG lookup entirely. + themedir=$(mktemp -d)/Papirus-Dark + cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark "$themedir" + chmod -R u+w "$themedir" - export HOME=$(mktemp -d) - export XDG_DATA_HOME=$tmpdata - - papirus-folders -C ${closestPfColor} -t Papirus-Dark + papirus-folders -C ${closestPfColor} -t "$themedir" mkdir -p $out/share/icons - cp -r $tmpdata/icons/Papirus-Dark $out/share/icons/ + cp -r "$themedir" $out/share/icons/Papirus-Dark ''; # Map matugen's Material You placeholders to the closest base16 slot