From 5e49caad46dfe7fa6ae80c82175aab0016fe59d9 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Thu, 11 May 2023 00:38:41 -0700 Subject: [PATCH] Document home manager plugins array (#221) --- pages/Nix/Options & Overrides.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/Nix/Options & Overrides.md b/pages/Nix/Options & Overrides.md index 9365640..e7a360b 100644 --- a/pages/Nix/Options & Overrides.md +++ b/pages/Nix/Options & Overrides.md @@ -68,6 +68,21 @@ to wlroots), you can do so by either using the `hyprland-no-hidpi` package, or by passing the `hidpiXWayland = false;` flag, the same way as [disabling XWayland](#package). +### Plugins + +Hyprland plugins can be added through the home manager module. + +```nix +wayland.windowManager.hyprland = { + plugins = [ + inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars + "/absolute/path/to/plugin.so" + ]; +}; +``` + +For examples on how to build hyprland plugins using nix see the [offical plugins](https://github.com/hyprwm/hyprland-plugins). + ### Nvidia Patches Nvidia is notorious for not working by default with wlroots. That's why we