Open diegofariasm opened 1 year ago
It may make sense to include the themeFile
option for the modules where we generate it ourselves, but for the wezterm module we use the home-manager module to set the values (and looking at the wezterm module it seems we need to add some lua to the main config file).
So maybe we can support this on a best effort basis, but since we're using hm we're more or less under the assumption that we handle fully the configuration of the packages we theme.
For your specific situation I can think of two solutions:
xdg.configFile."wezterm/wezterm.lua".enable = lib.mkForce false
to disable the generation of the wezterm.lua file while still enabling wezterm in home-managerresult/home-files/.config/wezterm/colors/stylix.toml
to the right place.It may make sense to include the
themeFile
option for the modules where we generate it ourselves, but for the wezterm module we use the home-manager module to set the values (and looking at the wezterm module it seems we need to add some lua to the main config file). So maybe we can support this on a best effort basis, but since we're using hm we're more or less under the assumption that we handle fully the configuration of the packages we theme.
That does make sense. Something along those lines would likely exceed the functionality that Stylix aims to achiev
It sounds like you might be better off with a standard base16 builder rather than Stylix? That would generate all of the theme files and leave them for you to put into place by hand.
It sounds like you might be better off with a standard base16 builder rather than Stylix? That would generate all of the theme files and leave them for you to put into place by hand.
That's true. Although i haven't found any of them yet, it sounds just like what i need. Could you recommend me any?
I have been trying to use stylix lately and have run into the issue that home-manager makes the files immutable, tying changing your configuration to messing around home-manager.
So, instead of automatically linking everything to place, wouldn't it be possible to make the contents for the file available to the user?
Something like this:
Where it could be something like the color.toml file for wezterm, for example.
That could make you able to symlink, for example, a color.toml file and just include it manually into your configuration, making the only thing stylix is responsible for generating the theme files.