synix/modules/home/stylix/targets/nixvim.nix
sid 9721481a69
All checks were successful
Flake check / flake-check (pull_request) Successful in 18s
Build tests / build-hosts (pull_request) Successful in 31s
stylix: use image to generate color scheme with scheme = 'generate-from-image'
2026-04-03 17:35:24 +02:00

16 lines
344 B
Nix

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