New kitty.nix

This commit is contained in:
2026-02-26 10:13:51 +01:00
parent b79a5c425c
commit 902cf5fa58
2 changed files with 16 additions and 8 deletions
+8 -4
View File
@@ -2186,19 +2186,23 @@ Kitty gets installed and configured
#+begin_src nix :tangle home/dev/kitty.nix :noweb tangle :mkdirp yes.
{ config, pkgs, lib, flakeRoot, ... }:
let
repoKittyConfPath = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
repoKittyConfText = builtins.readFile repoKittyConfPath;
repoKittyConfText =
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
catppuccinMochaConf =
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
in
{
xdg.enable = true;
programs.kitty = {
enable = true;
# Append your repo config into the generated kitty.conf
# Put your repo config into kitty.conf (appended to HM-generated file)
extraConfig = repoKittyConfText;
};
# Provide a stable include target (no /nix/store paths in kitty.conf)
# stable include target (so your repo kitty.conf can "include themes/…")
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
}
#+end_src
+8 -4
View File
@@ -1,17 +1,21 @@
{ config, pkgs, lib, flakeRoot, ... }:
let
repoKittyConfPath = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
repoKittyConfText = builtins.readFile repoKittyConfPath;
repoKittyConfText =
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/kitty.conf");
catppuccinMochaConf =
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
in
{
xdg.enable = true;
programs.kitty = {
enable = true;
# Append your repo config into the generated kitty.conf
# Put your repo config into kitty.conf (appended to HM-generated file)
extraConfig = repoKittyConfText;
};
# Provide a stable include target (no /nix/store paths in kitty.conf)
# stable include target (so your repo kitty.conf can "include themes/…")
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
}