stylix: use image to generate color scheme with scheme = 'generate-from-image'
This commit is contained in:
parent
5fe892570c
commit
9721481a69
4 changed files with 15 additions and 14 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue