mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Switch to nixfmt
This commit is contained in:
parent
1d70117186
commit
b38d2df431
55 changed files with 1559 additions and 1540 deletions
|
|
@ -1,39 +1,45 @@
|
|||
{
|
||||
assembleWrapper,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {theme ? "dark"}:
|
||||
assembleWrapper,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
theme ? "dark",
|
||||
}:
|
||||
assembleWrapper {
|
||||
basePackage = pkgs.kitty;
|
||||
basePackage = pkgs.kitty;
|
||||
|
||||
flags = let
|
||||
toKittyConfig = lib.generators.toKeyValue {
|
||||
mkKeyValue = key: value: let
|
||||
value' = (
|
||||
if lib.isBool value
|
||||
then lib.hm.booleans.yesNo value
|
||||
else toString value
|
||||
);
|
||||
in "${key} ${value'}";
|
||||
};
|
||||
kitty-config = pkgs.writeText "kitty-config" (toKittyConfig {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
confirm_os_window_close = 0;
|
||||
background_opacity = "0.85";
|
||||
enable_audio_bell = false;
|
||||
update_check_interval = 0;
|
||||
cursor_shape = "beam";
|
||||
});
|
||||
kitty-theme = pkgs.writeText "kitty-theme" "include ${pkgs.kitty-themes}/share/kitty-themes/themes/${{
|
||||
dark = "default.conf";
|
||||
light = "GitHub_Light.conf";
|
||||
flags =
|
||||
let
|
||||
toKittyConfig = lib.generators.toKeyValue {
|
||||
mkKeyValue =
|
||||
key: value:
|
||||
let
|
||||
value' = (if lib.isBool value then lib.hm.booleans.yesNo value else toString value);
|
||||
in
|
||||
"${key} ${value'}";
|
||||
};
|
||||
kitty-config = pkgs.writeText "kitty-config" (toKittyConfig {
|
||||
font_family = "JetBrainsMono Nerd Font";
|
||||
confirm_os_window_close = 0;
|
||||
background_opacity = "0.85";
|
||||
enable_audio_bell = false;
|
||||
update_check_interval = 0;
|
||||
cursor_shape = "beam";
|
||||
});
|
||||
kitty-theme = pkgs.writeText "kitty-theme" "include ${pkgs.kitty-themes}/share/kitty-themes/themes/${
|
||||
{
|
||||
dark = "default.conf";
|
||||
light = "GitHub_Light.conf";
|
||||
}
|
||||
.${theme}}";
|
||||
in [
|
||||
"--config"
|
||||
kitty-config
|
||||
"--config"
|
||||
kitty-theme
|
||||
.${theme}
|
||||
}";
|
||||
in
|
||||
[
|
||||
"--config"
|
||||
kitty-config
|
||||
"--config"
|
||||
kitty-theme
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue