Rebase to flake parts #9
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{ ... }: {
|
||||
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"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user