Add compatibility workarounds for 24.05

This commit is contained in:
Natsu Kagami 2024-10-09 11:47:29 +02:00
parent 55397974b4
commit 600ba660c9
Signed by: nki
GPG key ID: 55A032EB38B49ADB
2 changed files with 12 additions and 4 deletions

View file

@ -2,10 +2,20 @@
let
cfg = config.nki.programs.kitty;
theme = { lib, options, config, ... }: {
programs.kitty = lib.mkIf config.nki.programs.kitty.enable (
if builtins.hasAttr "themeFile" options.programs.kitty then {
themeFile = "ayu_light";
} else {
theme = "Ayu Light";
}
);
};
in
with lib;
{
imports = [ ./darwin.nix ./linux.nix ./tabs.nix ];
imports = [ theme ./darwin.nix ./linux.nix ./tabs.nix ];
options.nki.programs.kitty = {
enable = mkEnableOption "Enable kitty";
@ -50,8 +60,6 @@ with lib;
font.name = "Fantasque Sans Mono";
font.size = cfg.fontSize;
themeFile = "ayu_light";
settings =
let
# Background color and transparency