changed enablePlugins option to universal tabletSupport option because it makes more sense

This commit is contained in:
2026-09-04 08:13:05 +01:00
parent 4caac02796
commit daf346127a
3 changed files with 7 additions and 7 deletions

View File

@@ -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)