Improve wrapper structure

This commit is contained in:
SebastianStork 2024-05-20 11:41:01 +02:00
parent 83433f81ea
commit 30c546b57f
20 changed files with 170 additions and 212 deletions

View file

@ -0,0 +1,27 @@
{ 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 = pkgs.writeText "kitty-theme" "include ${pkgs.kitty-themes}/share/kitty-themes/themes/${theme-file}}";
in
[
"--config"
./kitty.conf
"--config"
kitty-theme
];
}