From e5407513a39e92381e9e17501d91f4c1f0dd5231 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Fri, 15 May 2026 22:27:17 +0100 Subject: [PATCH] --- settings/stylix.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/settings/stylix.nix b/settings/stylix.nix index b93ae57..15cf2d2 100644 --- a/settings/stylix.nix +++ b/settings/stylix.nix @@ -83,15 +83,20 @@ papirusDark = pkgs.runCommand "papirus-dark-${closestPfColor}" { nativeBuildInputs = [ pkgs.papirus-folders ]; } '' - mkdir -p $out/share/icons - cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark $out/share/icons/ - chmod -R u+w $out/share/icons/Papirus-Dark + # 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 export HOME=$(mktemp -d) - mkdir -p $HOME/.local/share/icons - ln -s $out/share/icons/Papirus-Dark $HOME/.local/share/icons/Papirus-Dark + export XDG_DATA_HOME=$tmpdata papirus-folders -C ${closestPfColor} -t Papirus-Dark + + mkdir -p $out/share/icons + cp -r $tmpdata/icons/Papirus-Dark $out/share/icons/ ''; # Map matugen's Material You placeholders to the closest base16 slot