-
Often when I update my system the theme generated by stylix gets rebuilt as well. This is expected behavior, I assume it happens either because GHC was updated or because the palette-generator code changed (I update stylix frequently). This is a bit inconvenient, as palette-generator takes a little while to generate a new theme, which is of course useless because it always happen to be the same as the previous one. So I was wondering if there were a way to tell NixOS to not rebuild the stylix-generated theme, or at least the palette-generator package (I assume the theme's only dependency is palette-generator). Is there a standard way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
AFAIK, the following snippet is responsible for caching the palette: Lines 169 to 193 in c5f8f06 TBH, I am not entirely sure how
Based on the discussion from #477 it might be necessary to rewrite the palette generator in the future. Later, it might be possible to improve the palette generator performance. |
Beta Was this translation helpful? Give feedback.
-
I ended up setting |
Beta Was this translation helpful? Give feedback.
I ended up setting
stylix.base16scheme
to the value I found in/etc/stylix/generated.json
.