32 lines
987 B
Nix
32 lines
987 B
Nix
{ ... }: {
|
|
flake.homeManagerModules.wisdomTerminalsKitty =
|
|
{ config, lib, ... }:
|
|
let
|
|
root = config.chiasson.home;
|
|
cfg = config.chiasson.home.terminals.kitty;
|
|
in
|
|
{
|
|
options.chiasson.home.terminals.kitty.enable = lib.mkEnableOption ''
|
|
Kitty + DMS includes; activation strips `*-theme.auto.conf` so matugen colors stick.
|
|
'';
|
|
|
|
config = lib.mkIf (root.enable && cfg.enable) {
|
|
programs.kitty = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
include dank-tabs.conf
|
|
include dank-theme.conf
|
|
allow_remote_control yes
|
|
listen_on unix:@kitty
|
|
'';
|
|
};
|
|
|
|
home.activation.kittyRemoveAutoThemes = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
|
rm -f "$HOME/.config/kitty/dark-theme.auto.conf" \
|
|
"$HOME/.config/kitty/light-theme.auto.conf" \
|
|
"$HOME/.config/kitty/no-preference-theme.auto.conf"
|
|
'';
|
|
};
|
|
};
|
|
}
|