mirror of
https://github.com/hyprwm/Hyprland
synced 2025-04-10 23:52:22 +02:00
nix/module: load plugins using exec-once (#9836)
This commit is contained in:
parent
a41b8d5e97
commit
b496e2c718
1 changed files with 3 additions and 2 deletions
|
@ -126,13 +126,14 @@ in {
|
|||
bottomCommandsPrefixes = cfg.bottomPrefixes;
|
||||
}
|
||||
{
|
||||
plugin = let
|
||||
"exec-once" = let
|
||||
mkEntry = entry:
|
||||
if lib.types.package.check entry
|
||||
then "${entry}/lib/lib${entry.pname}.so"
|
||||
else entry;
|
||||
hyprctl = lib.getExe' config.programs.hyprland.package "hyprctl";
|
||||
in
|
||||
map mkEntry cfg.plugins;
|
||||
map (p: "${hyprctl} plugin load ${mkEntry p}") cfg.plugins;
|
||||
};
|
||||
in
|
||||
lib.mkIf shouldGenerate {
|
||||
|
|
Loading…
Add table
Reference in a new issue