From 2e0f6163f61cb1e4195f1a08ad1148e57a4f5843 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 2 Aug 2026 18:18:07 +0530 Subject: feat: Added package option to each module, darkman service - Added package options to each module which defines the package/derivation that should be used in all other modules - Added a systemd oneshot service that autosets darkman to dark mode - Removed the prompt from rofi --- modules/terminal/kitty/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'modules/terminal/kitty/default.nix') diff --git a/modules/terminal/kitty/default.nix b/modules/terminal/kitty/default.nix index 68824a9..f4d81ba 100644 --- a/modules/terminal/kitty/default.nix +++ b/modules/terminal/kitty/default.nix @@ -2,13 +2,17 @@ { config, lib, - pkgs, ... }: { options.terminal.kitty = { enable = lib.mkEnableOption "Enables kitty."; - package = lib.mkPackageOption pkgs "kitty" { }; + package = lib.mkOption { + type = lib.types.package; + readOnly = true; + default = config.programs.kitty.package; + description = "The kitty package to use."; + }; }; config = lib.mkIf config.terminal.kitty.enable { @@ -18,7 +22,6 @@ programs.kitty = { enable = true; - package = config.terminal.kitty.package; extraConfig = '' # Keep normal clicks for selection and prompt placement; Ctrl+click opens links. mouse_map left click ungrabbed mouse_handle_click selection prompt -- cgit v1.2.3