New Kitty.nix
This commit is contained in:
+18
-10
@@ -2186,24 +2186,32 @@ Kitty gets installed and configured
|
|||||||
#+begin_src nix :tangle home/dev/kitty.nix :noweb tangle :mkdirp yes.
|
#+begin_src nix :tangle home/dev/kitty.nix :noweb tangle :mkdirp yes.
|
||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, lib, flakeRoot, ... }:
|
||||||
let
|
let
|
||||||
repoKittyConfText =
|
|
||||||
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
|
|
||||||
|
|
||||||
catppuccinMochaConf =
|
catppuccinMochaConf =
|
||||||
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
||||||
|
# Your own keymaps / other settings (but we will NOT rely on it for opacity)
|
||||||
|
repoKittyConfText =
|
||||||
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
# Stable theme file so kitty.conf can include it without /nix/store paths
|
||||||
|
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Home Manager generates ~/.config/kitty/kitty.conf; we append in-order:
|
||||||
# Put your repo config into kitty.conf (appended to HM-generated file)
|
# 1) include theme
|
||||||
extraConfig = repoKittyConfText;
|
# 2) your repo config (keymaps etc.)
|
||||||
|
# 3) force opacity LAST so it always wins
|
||||||
|
extraConfig = ''
|
||||||
|
# 1) Theme first (stable path)
|
||||||
|
include themes/Catppuccin-Mocha.conf
|
||||||
|
# 2) Your repo config (may also include theme; harmless if duplicated)
|
||||||
|
${repoKittyConfText}
|
||||||
|
# 3) Force transparency last (wins)
|
||||||
|
background_opacity 0.60
|
||||||
|
dynamic_background_opacity yes
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# stable include target (so your repo kitty.conf can "include themes/…")
|
|
||||||
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
@@ -1,21 +1,29 @@
|
|||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, lib, flakeRoot, ... }:
|
||||||
let
|
let
|
||||||
repoKittyConfText =
|
|
||||||
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
|
|
||||||
|
|
||||||
catppuccinMochaConf =
|
catppuccinMochaConf =
|
||||||
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
||||||
|
# Your own keymaps / other settings (but we will NOT rely on it for opacity)
|
||||||
|
repoKittyConfText =
|
||||||
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
|
# Stable theme file so kitty.conf can include it without /nix/store paths
|
||||||
|
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
||||||
programs.kitty = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Home Manager generates ~/.config/kitty/kitty.conf; we append in-order:
|
||||||
# Put your repo config into kitty.conf (appended to HM-generated file)
|
# 1) include theme
|
||||||
extraConfig = repoKittyConfText;
|
# 2) your repo config (keymaps etc.)
|
||||||
|
# 3) force opacity LAST so it always wins
|
||||||
|
extraConfig = ''
|
||||||
|
# 1) Theme first (stable path)
|
||||||
|
include themes/Catppuccin-Mocha.conf
|
||||||
|
# 2) Your repo config (may also include theme; harmless if duplicated)
|
||||||
|
${repoKittyConfText}
|
||||||
|
# 3) Force transparency last (wins)
|
||||||
|
background_opacity 0.60
|
||||||
|
dynamic_background_opacity yes
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# stable include target (so your repo kitty.conf can "include themes/…")
|
|
||||||
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user