diff options
| author | Amadej Kastelic <amadejkastelic7@gmail.com> | 2025-04-03 09:43:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-03 10:43:06 +0300 |
| commit | b496e2c71817aae5560af04b8c6439c39f4e05d8 (patch) | |
| tree | 578aaf8245f784a514e0f0698e7833864482d13f /nix | |
| parent | a41b8d5e977a7382bce3de251a3a014ae7b3c625 (diff) | |
nix/module: load plugins using exec-once (#9836)
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/module.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/module.nix b/nix/module.nix index 0b8c4f42..10a8c97c 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -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 { |
