From 30f8fea050f3242f0e6a2072779e706b5c8ceaf1 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 03:42:25 +0530 Subject: refactor(modules): introduce cfg local bindings and submodule option types --- modules/terminal/kitty/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/terminal/kitty') diff --git a/modules/terminal/kitty/default.nix b/modules/terminal/kitty/default.nix index e7a5fbb..7e4c701 100644 --- a/modules/terminal/kitty/default.nix +++ b/modules/terminal/kitty/default.nix @@ -2,8 +2,12 @@ { config, lib, + pkgs, ... }: +let + cfg = config.terminal.kitty; +in { imports = [ ./colors.nix @@ -20,7 +24,7 @@ }; }; - config = lib.mkIf config.terminal.kitty.enable { + config = lib.mkIf cfg.enable { xdg.mimeApps.defaultApplications = { "x-scheme-handler/terminal" = "kitty.desktop"; }; -- cgit v1.2.3