mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
27 lines
479 B
Nix
27 lines
479 B
Nix
{ assembleWrapper, moduleArgs, ... }:
|
|
let
|
|
inherit (moduleArgs) pkgs;
|
|
in
|
|
{
|
|
theme ? "dark",
|
|
}:
|
|
assembleWrapper {
|
|
basePackage = pkgs.kitty;
|
|
|
|
flags =
|
|
let
|
|
theme-file =
|
|
{
|
|
dark = "default.conf";
|
|
light = "GitHub_Light.conf";
|
|
}
|
|
.${theme};
|
|
kitty-theme = "include=${pkgs.kitty-themes}/share/kitty-themes/themes/${theme-file}";
|
|
in
|
|
[
|
|
"--config"
|
|
./kitty.conf
|
|
"--override"
|
|
kitty-theme
|
|
];
|
|
}
|