plugins loading in hyprland according to toggle
This commit is contained in:
@@ -56,10 +56,11 @@
|
||||
'';
|
||||
|
||||
system.activationScripts.hyprConfig = let
|
||||
pluginFile = builtins.toFile "plugins.lua" ''
|
||||
hyprgrassPath = "${inputs'.hyprgrass.packages.default}/lib/libhyprgrass.so";
|
||||
pluginFile = pkgs.writeText "plugins.lua" ''
|
||||
hl.on("hyprland.start", function ()
|
||||
${lib.optionalString config.hyprland.enablePlugins ''
|
||||
hl.exec("hyprctl plugin load ${inputs'.hyprgrass.packages.default}/lib/libhyprgrass.so")
|
||||
hl.exec_cmd("hyprctl plugin load ${hyprgrassPath}")
|
||||
''}
|
||||
end)
|
||||
'';
|
||||
@@ -82,6 +83,7 @@
|
||||
hyprland = inputs'.hyprland.packages.default.override {
|
||||
flags."--config" = "/run/hypr/config/hyprland.lua";
|
||||
env."MODULES_ROOT" = "/run/hypr/config/modules";
|
||||
env."HYPRLAND_ROOT" = "/run/hypr/config";
|
||||
runtimePackages =
|
||||
inputs.hyprland.lib.defaultRuntimePkgs.${system}
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user