mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
26 lines
516 B
Nix
26 lines
516 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.theme.base16;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
programs.kitty.extraConfig = ''
|
|
include ./current-theme.conf
|
|
'';
|
|
|
|
xdg.configFile."flavours/templates/kitty/templates/default.mustache".source = ./default.mustache;
|
|
|
|
theme.base16.options.items = [
|
|
{
|
|
file = "${config.xdg.configHome}/kitty/current-theme.conf";
|
|
template = "kitty";
|
|
hook = "kill -SIGUSR1 $(pgrep kitty)";
|
|
rewrite = true;
|
|
}
|
|
];
|
|
};
|
|
}
|