diff --git a/home.nix b/home.nix index 9c4315a..2bceff4 100644 --- a/home.nix +++ b/home.nix @@ -40,17 +40,21 @@ programs.direnv.enable = true; programs.direnv.nix-direnv.enable = true; + xdg.configFile."hypr/plugins.lua".text = + let + smw = + inputs.split-monitor-workspaces.packages.${pkgs.stdenv.hostPlatform.system}.split-monitor-workspaces; + in + '' + --hl.on("hyprland.start", function() + hl.plugin.load("${smw}/lib/libsplit-monitor-workspaces.so") + --end) + ''; + wayland.windowManager.hyprland = { enable = true; xwayland.enable = true; package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland; - plugins = [ - split-monitor-workspaces.packages.x86_64-linux.split-monitor-workspaces - ]; - extraConfig = '' - source = ~/.config/hypr/common.conf - source = ~/.config/hypr/device/laptop.conf - ''; }; home.stateVersion = "25.05";