mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
34 lines
613 B
Nix
34 lines
613 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.theme.base16;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim = {
|
|
extraConfigLuaPre = ''
|
|
require('flavours-colors')
|
|
'';
|
|
extraPlugins = [ pkgs.vimPlugins.base16-nvim ];
|
|
};
|
|
|
|
xdg.configFile."flavours/templates/nvim/templates/default.mustache".source = ./default.mustache;
|
|
|
|
theme.base16.options.items = [
|
|
{
|
|
file = "${config.xdg.configHome}/nvim/lua/flavours-colors.lua";
|
|
template = "nvim";
|
|
#hook = "kill -SIGUSR1 $(pgrep kitty)";
|
|
rewrite = true;
|
|
}
|
|
];
|
|
};
|
|
}
|