Can't seem to set nordic papirus folder icons using papirus-folders

I am trying to set Papirus-Dark folders to nordic. I installed papirus-folders but `sudo papirus-folders -C nordic --theme Papirus-Dark` fails as current-system/sw/share is read only. there no option for it either. what should I do? I’m new to NixOS. My setup is NNN stack NixOS Niri Noctalia and I’m on stable 26.05 channel. I can’t seem to find the solution anywhere.

I don’t use papirus for my setup, but I poked a little around the papirus-icon-theme source code in nixpkgs and saw this:

for theme in $out/share/icons/*; do
  ${lib.optionalString (color != null) "papirus-folders -t $theme -o -C ${color}"}
  gtk-update-icon-cache --force $theme
done

papirus-folders is a build dependency for papirus-icon-theme. The way I understand it, overriding the color attribute, you should be able to declaratively define which theme you want. You can try doing so by altering the line where you declare to install papirus-icon-theme to this:

environment.systemPackages = with pkgs; [
  (papirus-icon-theme.override { color = "nordic"; })
];

The only thing that confused me now is the fact that the version of papirus-icon-theme is older than the minimum version that the papirus-folders script demands (20171007).

I’m new to NixOS too, so I lack experience, but I hope this is a potential fix!

1 Like

Yep, I also ended up looking inside and managed to change the color to nordic. It worked, but for some reason it took a lot of time (about 15 minutes) to install. I guess it had to rebuild the whole package. The package maintainer or the developers could’ve mentioned it somewhere, so I wouldn’t have had to read the whole thing. Thank you so much for replying. I will mark it as the solution. btw, what icons do you use?

Glad this helped! As of right now, I’m just using the icons the applications come installed with (if they come with one). I’m planning to replace them with my own custom-made icons. =)

1 Like