From 23616c2e13f63f0262d64538032b98ce83cc0ec2 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 15 Jul 2026 20:32:36 +0530 Subject: feat: renamed the options to reflect their changed directory stucture Renamed the options for the configurations based on the sub-module that they belong to --- modules/terminal/kitty/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'modules/terminal/kitty') diff --git a/modules/terminal/kitty/default.nix b/modules/terminal/kitty/default.nix index 3701180..9b1836a 100644 --- a/modules/terminal/kitty/default.nix +++ b/modules/terminal/kitty/default.nix @@ -1,17 +1,25 @@ { config, lib, + pkgs, ... }: # Kitty - GPU-accelerated terminal emulator { - config = lib.mkIf config.programs.kitty.enable { + options.terminal.kitty = { + enable = lib.mkEnableOption "Enables kitty."; + package = lib.mkPackageOption pkgs "kitty" { }; + }; + + config = lib.mkIf config.terminal.kitty.enable { xdg.mimeApps.defaultApplications = { "x-scheme-handler/terminal" = "kitty.desktop"; }; programs.kitty = { + enable = true; + package = config.terminal.kitty.package; settings = with config.scheme.withHashtag; { window_padding_width = 10; font_size = config.fonts.size; @@ -48,7 +56,7 @@ allow_remote_control = "yes"; listen_on = "unix:/tmp/kitty"; - shell = lib.mkIf config.programs.zsh.enable (lib.getExe config.programs.zsh.package); + shell = lib.mkIf config.terminal.zsh.enable (lib.getExe config.terminal.zsh.package); }; }; }; -- cgit v1.2.3