From daf346127a513c0369d91d8cfe49e438c56dbddf Mon Sep 17 00:00:00 2001 From: voidarc Date: Fri, 4 Sep 2026 08:13:05 +0100 Subject: [PATCH] changed enablePlugins option to universal tabletSupport option because it makes more sense --- modules/features/hyprland/default.nix | 8 ++++---- modules/features/quickshell/default.nix | 4 ++-- modules/hosts/mobile03/default.nix | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/features/hyprland/default.nix b/modules/features/hyprland/default.nix index 833aab5..e41bdf0 100644 --- a/modules/features/hyprland/default.nix +++ b/modules/features/hyprland/default.nix @@ -14,7 +14,7 @@ modules = with self.nixosModules; [ audio systemTheme - quickshell + quickshell ]; runtimePkgs = self'.packages.hyprland.passthru.runtimePackages; @@ -28,10 +28,10 @@ imports = modules; options = { - hyprland.enablePlugins = lib.mkOption { + tabletSupport = lib.mkOption { type = lib.types.bool; default = false; - description = "Enable plugins, basically just touchscreen support"; + description = "Enable tablet support across all modules"; }; }; @@ -62,7 +62,7 @@ hyprgrassPath = "${inputs'.hyprgrass.packages.default}/lib/libhyprgrass.so"; pluginFile = pkgs.writeText "plugins.lua" '' hl.on("hyprland.start", function () - ${lib.optionalString config.hyprland.enablePlugins '' + ${lib.optionalString config.tabletSupport '' hl.exec_cmd("hyprctl plugin load ${hyprgrassPath}") ''} end) diff --git a/modules/features/quickshell/default.nix b/modules/features/quickshell/default.nix index bca84f9..88ceff5 100644 --- a/modules/features/quickshell/default.nix +++ b/modules/features/quickshell/default.nix @@ -13,9 +13,9 @@ quickshell ] ++ ( - if config.hyprland.enablePlugins == true + if config.tabletSupport == true then - # If on tablet enable on screen keyboard + # If on tablet enable on screen keyboard (with pkgs; [ wvkbd ]) diff --git a/modules/hosts/mobile03/default.nix b/modules/hosts/mobile03/default.nix index 98e132d..61cd4cf 100644 --- a/modules/hosts/mobile03/default.nix +++ b/modules/hosts/mobile03/default.nix @@ -12,7 +12,7 @@ thinkpadFanControl upower ({...}: { - hyprland.enablePlugins = true; + tabletSupport = true; }) ]; };