mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Improve wrapper structure
This commit is contained in:
parent
83433f81ea
commit
30c546b57f
20 changed files with 170 additions and 212 deletions
27
wrappers/kitty/default.nix
Normal file
27
wrappers/kitty/default.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue