plugins loading in hyprland according to toggle
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -374,11 +374,11 @@
|
|||||||
"wshowkeys": "wshowkeys"
|
"wshowkeys": "wshowkeys"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787681733,
|
"lastModified": 1787685448,
|
||||||
"narHash": "sha256-+KuqE3sLF/rSO9QU3ByxPVYhkl3WH9rPOIvZZARK2LM=",
|
"narHash": "sha256-gvdmxEM49ZE6KqosyKIHsQ6V6NHcYrw9in2TpuFad4I=",
|
||||||
"ref": "refs/heads/main",
|
"ref": "refs/heads/main",
|
||||||
"rev": "31e7c1ccb7b6a0cb396fa57846232ab8c5bd7e81",
|
"rev": "0c27e34df40ba4865cb8d9838b80685fc3b79785",
|
||||||
"revCount": 65,
|
"revCount": 69,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.voidarc.co.uk/voidarc/hypr"
|
"url": "https://git.voidarc.co.uk/voidarc/hypr"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,10 +56,11 @@
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
system.activationScripts.hyprConfig = let
|
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 ()
|
hl.on("hyprland.start", function ()
|
||||||
${lib.optionalString config.hyprland.enablePlugins ''
|
${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)
|
end)
|
||||||
'';
|
'';
|
||||||
@@ -82,6 +83,7 @@
|
|||||||
hyprland = inputs'.hyprland.packages.default.override {
|
hyprland = inputs'.hyprland.packages.default.override {
|
||||||
flags."--config" = "/run/hypr/config/hyprland.lua";
|
flags."--config" = "/run/hypr/config/hyprland.lua";
|
||||||
env."MODULES_ROOT" = "/run/hypr/config/modules";
|
env."MODULES_ROOT" = "/run/hypr/config/modules";
|
||||||
|
env."HYPRLAND_ROOT" = "/run/hypr/config";
|
||||||
runtimePackages =
|
runtimePackages =
|
||||||
inputs.hyprland.lib.defaultRuntimePkgs.${system}
|
inputs.hyprland.lib.defaultRuntimePkgs.${system}
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user