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/desktop/rofi/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'modules/desktop/rofi/default.nix') diff --git a/modules/desktop/rofi/default.nix b/modules/desktop/rofi/default.nix index 797cbe9..d40ccbb 100644 --- a/modules/desktop/rofi/default.nix +++ b/modules/desktop/rofi/default.nix @@ -5,20 +5,17 @@ }: { options.desktop.rofi = { - enable = lib.mkEnableOption "Enables rofi launcher." // { - default = true; - }; package = lib.mkOption { type = lib.types.package; + readOnly = true; + default = config.programs.rofi.finalPackage; description = "The rofi package to use."; }; }; config = lib.mkIf config.desktop.enable { - desktop.rofi.package = lib.mkDefault config.programs.rofi.finalPackage; - programs.rofi = { - enable = config.desktop.rofi.enable; + enable = true; theme = "${config.scheme { template = builtins.readFile ./theme.mustache.rasi; extension = ".rasi"; @@ -27,7 +24,6 @@ modi = "drun"; show-icons = true; drun-display-format = "{name}"; - display-drun = "Launch"; sort = true; }; }; -- cgit v1.2.3