0199475e7873a99d41f4afad812af880e0122d43
- Author
- outfoxxed <outfoxxed@outfoxxed.me>
- Committer
- outfoxxed <outfoxxed@outfoxxed.me>
- Date
Message
Add package configuration to home manager module
Diff
1diff --git a/flake.nix b/flake.nix
2index 2c82b4cfbfeb51befc207e58758fd6aeab5ca955..37e4d8e914e2610b72f9bdfcca4700e1684a921f 100644
3--- a/flake.nix
4+++ b/flake.nix
5@@ -53,11 +53,16 @@
6 in {
7 options.wayland.windowManager.hyprland.plugins.hy3 = {
8 enable = lib.mkEnableOption "hy3 plugin";
9+
10+ package = lib.mkOption {
11+ type = lib.types.package;
12+ default = hy3Package;
13+ };
14 };
15
16 config = lib.mkIf cfg.enable {
17 wayland.windowManager.hyprland.extraConfig = ''
18- exec-once = hyprctl plugin load ${hy3Package}/lib/libhy3.so && hyprctl reload
19+ exec-once = hyprctl plugin load ${cfg.package}/lib/libhy3.so && hyprctl reload
20 '';
21 };
22 };