From 6e3dd312a4032b4d0b47dde64cfc15542032a685 Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Tue, 29 Apr 2025 13:57:19 +0200 Subject: [PATCH] quickshell: add option to enable it --- modules/style/quickshell/module.nix | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/modules/style/quickshell/module.nix b/modules/style/quickshell/module.nix index 1c5de33..38dfcae 100644 --- a/modules/style/quickshell/module.nix +++ b/modules/style/quickshell/module.nix @@ -6,15 +6,24 @@ ... }: let inherit (inputs) quickshell; -in { - environment.systemPackages = with pkgs; [ - quickshell.packages.x86_64-linux.default - qt6.qtimageformats - qt6.qt5compat - qt6.qtmultimedia - qt6.qtdeclarative - ]; - # taken from outfoxxed. - qt.enable = true; + inherit (lib.modules) mkIf; + inherit (lib.options) mkEnableOption; + + cfg = config.modules.theming.quickshell; +in { + options.modules.theming.quickshell.enable = mkEnableOption "quickshell"; + + config = mkIf cfg.enable { + environment.systemPackages = with pkgs; [ + quickshell.packages.x86_64-linux.default + qt6.qtimageformats + qt6.qt5compat + qt6.qtmultimedia + qt6.qtdeclarative + ]; + + # taken from outfoxxed. + qt.enable = true; + }; }