diff --git a/dotfiles/kitty.conf b/dotfiles/kitty.conf deleted file mode 100644 index 238b626..0000000 --- a/dotfiles/kitty.conf +++ /dev/null @@ -1,9 +0,0 @@ -cursor #c7c7c7 -cursor #c7c7c7 -cursor_text_color #feffff -selection_foreground #3e3e3e -selection_background #c1ddff -foreground #c8c8c8 -background #323232 -background_opacity 0.8 -confirm_os_window_close 0 diff --git a/hosts/common/home.nix b/hosts/common/home.nix index 1493931..3b6b93a 100644 --- a/hosts/common/home.nix +++ b/hosts/common/home.nix @@ -5,12 +5,15 @@ [ ../../modules/home-manager/webapps.nix ../../modules/home-manager/lf/lf.nix + ../../modules/home-manager/kitty.nix ]; smayzy.webapps.enable = true; smayzy.lf.enable = true; + smayzy.kitty.enable = true; + home.username = "smayzy"; home.homeDirectory = "/home/smayzy"; home.stateVersion = "25.05"; @@ -24,10 +27,6 @@ recursive = true; force = true; }; - ".config/kitty/kitty.conf" = { - source = builtins.toPath ../../dotfiles/kitty.conf; - force = true; - }; ".config/mako/config" = { source = builtins.toPath ../../dotfiles/mako/config; force = true; diff --git a/modules/home-manager/kitty.nix b/modules/home-manager/kitty.nix new file mode 100644 index 0000000..d9d6b07 --- /dev/null +++ b/modules/home-manager/kitty.nix @@ -0,0 +1,27 @@ +{ config, lib, pkgs, ... }: +let + inherit (lib) mkIf mkOption types; +in +{ + options.smayzy.kitty.enable = mkOption { + type = types.bool; + default = false; + description = "kitty config"; + }; + + config = mkIf config.smayzy.kitty.enable { + programs.kitty = { + enable = true; + settings = { + cursor = "#c7c7c7"; + cursor_text_color = "#feffff"; + selection_foreground = "#3e3e3e"; + selection_background = "#c1ddff"; + foreground = "#c8c8c8"; + background = "#323232"; + background_opacity = 0.8; + confirm_os_window_close = 0; + }; + }; + }; +}