1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-06 00:51:04 +01:00

hyprland: load plugins using exec-once (#6789)

Should eliminate crashes / plugin version mismatches when updating hyprland.
This commit is contained in:
Amadej Kastelic 2025-04-09 20:38:08 +02:00 committed by GitHub
parent 542efdf2df
commit 7946193670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 6 deletions

View file

@ -287,12 +287,13 @@ in
plugins:
lib.hm.generators.toHyprconf {
attrs = {
plugin =
"exec-once" =
let
mkEntry =
entry: if lib.types.package.check entry then "${entry}/lib/lib${entry.pname}.so" else entry;
hyprctl = "${cfg.finalPackage}/bin/hyprctl";
in
map mkEntry cfg.plugins;
map (p: "${hyprctl} plugin load ${mkEntry p}") cfg.plugins;
};
inherit (cfg) importantPrefixes;
};