stylix: use image to generate color scheme with scheme = 'generate-from-image'
All checks were successful
Flake check / flake-check (pull_request) Successful in 18s
Build tests / build-hosts (pull_request) Successful in 31s

This commit is contained in:
sid 2026-04-03 17:34:23 +02:00
parent 5fe892570c
commit 9721481a69
4 changed files with 15 additions and 14 deletions

View file

@ -4,11 +4,13 @@ let
cfg = config.stylix;
target = cfg.targets.nixvim;
inherit (lib) mkIf;
inherit (lib) mkIf optionalAttrs;
in
{
config = mkIf cfg.enable {
stylix.targets.nixvim.enable = false;
programs.nixvim.colorschemes."${cfg.scheme}".enable = !target.enable;
programs.nixvim.colorschemes = optionalAttrs (cfg.scheme != "generate-from-image") {
"${cfg.scheme}".enable = !target.enable;
};
};
}