Closed Ladas552 closed 1 month ago
The kitty theme is imported using extraConfig
here:
Perhaps something is overriding this? I know that in some cases using settings
can disable anything in extraConfig
.
So, I tried to comment out the whole kitty.nix I got and just left the programs.kitty.enable = true;
, as @danth assumed would work. Rebuild, and Stylix started to work properly. Then I Uncommented the whole thing back. And rebuild. Stylix still follows the targets.kitty.enable=false
even with autoEnable = true
.
I don't know why it didn't work the first time, but if anything, unloading my kitty file module helped. Thanks for your attention, this was a weird bug.
The kitty theme is imported using
extraConfig
here:Perhaps something is overriding this? I know that in some cases using
settings
can disable anything inextraConfig
.
As usual, Home Manager inserts the extraConfig
at the end of the generated configuration file: https://github.com/nix-community/home-manager/blob/release-23.11/modules/programs/kitty.nix#L202-L205.
However, the use of extraConfig
might cause other potentially related issues. As discussed in https://github.com/danth/stylix/issues/159#issuecomment-1937879216, it makes it harder to override options, and as discussed in https://github.com/danth/stylix/pull/388#issuecomment-2126947630, it makes it easier to accidentally override Stylix options.
I don't know why it didn't work the first time, but if anything, unloading my kitty file module helped. Thanks for your attention, this was a weird bug.
It could be that this was caused by the fact that the Stylix generated theme is injected at the end of the configuration file.
As I happen to test a minute ago, it could have been happening because fish shell can change the colors of terminal, and got changed by stylix, therefore applying the colorscheme onto kitty. And it is not reversed back when exiting to bash it seems. Sorry for bothering
Hi.
Issue:
Stylix seems to ignore the targets for kitty, as described in the manual.
Workarounds and poking around:
The only way to disable bugged behavior, applying to kitty, is only with disabling
autoEnable
option.On the other hand, Stylix honors the
targets
options after disablingautoEnable
option, for some reason.Also, it seems Stylix doesn't make a ~/.config/kitty.conf file or edit it.
Info and config
Using Stylix as a Home Manager module on Standalone Home Manager inside NixOS. With flakes defined as
inputs
This works, a stylix config.
Here is Kitty config with defined colors that works perfectly fine if I disable Stylix or
autoEnable