7d70e7d890983bd6da402b69428ff6eb8d865083

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

Update readme and flake to match upstream home manager plugins list

Diff

 1diff --git a/README.md b/README.md
 2index 4eaa3c495844b2b4d3c7246f5c928422fbb5a77b..fd7e46166b7f7a5c934b084edf33eb3dc4ee79a3 100644
 3--- a/README.md
 4+++ b/README.md
 5@@ -42,7 +42,7 @@ You can use `hy3:makegroup` to create a new split.
 6 
 7 ### Nix
 8 #### Using the home-manager module
 9-Assuming you use hyprland's home manager module, you can easily integrate hy3, as hy3 provides a home manager module that exposes the `wayland.windowManager.hyprland.plugins.hy3.enable` option.
10+Assuming you use hyprland's home manager module, you can easily integrate hy3 by adding it to the plugins array.
11 
12 ```nix
13 # flake.nix
14@@ -70,12 +70,11 @@ Assuming you use hyprland's home manager module, you can easily integrate hy3, a
15 
16       modules = [
17         hyprland.homeManagerModules.default
18-        hy3.homeManagerModules.default
19 
20         {
21           wayland.windowManager.hyprland = {
22             enable = true;
23-            plugins.hy3.enable = true;
24+            plugins = [ hy3.packages.x86_64-linux.hy3 ];
25           };
26         }
27       ];
28@@ -93,7 +92,7 @@ directly use it in your hyprland config like so:
29 wayland.windowManager.hyprland = {
30   # ...
31   extraConfig = ''
32-    exec-once = hyprctl plugin load ${hy3.packages.x86_64-linux.hy3}/lib/libhy3.so
33+    plugin = ${hy3.packages.x86_64-linux.hy3}/lib/libhy3.so
34   '';
35 };
36 ```
37diff --git a/flake.nix b/flake.nix
38index 63ddbfec7c1d0df5a3c268b5d0ffaacc518081c5..75e1b450c2f93bc549514fae7405d25fe43521bb 100644
39--- a/flake.nix
40+++ b/flake.nix
41@@ -46,25 +46,5 @@
42         inputsFrom = [ self.packages.${system}.hy3 ];
43       };
44     });
45-
46-    homeManagerModules.default = { config, lib, pkgs, ... }: let
47-      cfg = config.wayland.windowManager.hyprland.plugins.hy3;
48-      hy3Package = self.packages.${pkgs.hostPlatform.system}.default;
49-    in {
50-      options.wayland.windowManager.hyprland.plugins.hy3 = {
51-        enable = lib.mkEnableOption "hy3 plugin";
52-
53-        package = lib.mkOption {
54-          type = lib.types.package;
55-          default = hy3Package;
56-        };
57-      };
58-
59-      config = lib.mkIf cfg.enable {
60-        wayland.windowManager.hyprland.extraConfig = ''
61-          plugin = ${cfg.package}/lib/libhy3.so
62-        '';
63-      };
64-    };
65   };
66 }