Adapted Kitty.nix
This commit is contained in:
@@ -2186,16 +2186,20 @@ 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
|
||||||
repoKittyConf = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
|
repoKittyConfPath = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
|
||||||
# Use the Catppuccin theme shipped by the catppuccin/kitty repo (mocha flavor).
|
repoKittyConfText = builtins.readFile repoKittyConfPath;
|
||||||
catppuccinMochaConf = builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
catppuccinMochaConf =
|
||||||
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
programs.kitty.enable = true;
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
# Append your repo config into the generated kitty.conf
|
||||||
|
extraConfig = repoKittyConfText;
|
||||||
|
};
|
||||||
# Provide a stable include target (no /nix/store paths in kitty.conf)
|
# Provide a stable include target (no /nix/store paths in kitty.conf)
|
||||||
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
||||||
xdg.configFile."kitty/kitty.conf".text = repoKittyConf;
|
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, lib, flakeRoot, ... }:
|
||||||
let
|
let
|
||||||
repoKittyConf = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
|
repoKittyConfPath = flakeRoot + "/assets/conf/dev/terminal/kitty.conf";
|
||||||
# Use the Catppuccin theme shipped by the catppuccin/kitty repo (mocha flavor).
|
repoKittyConfText = builtins.readFile repoKittyConfPath;
|
||||||
catppuccinMochaConf = builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
catppuccinMochaConf =
|
||||||
|
builtins.readFile (flakeRoot + "/assets/conf/dev/terminal/Catppuccin-Mocha.conf");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
xdg.enable = true;
|
xdg.enable = true;
|
||||||
programs.kitty.enable = true;
|
programs.kitty = {
|
||||||
|
enable = true;
|
||||||
|
# Append your repo config into the generated kitty.conf
|
||||||
|
extraConfig = repoKittyConfText;
|
||||||
|
};
|
||||||
# Provide a stable include target (no /nix/store paths in kitty.conf)
|
# Provide a stable include target (no /nix/store paths in kitty.conf)
|
||||||
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
xdg.configFile."kitty/themes/Catppuccin-Mocha.conf".text = catppuccinMochaConf;
|
||||||
xdg.configFile."kitty/kitty.conf".text = repoKittyConf;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user