Nix-Config/modules/home/nyxerinys/linux/hyprland.nix
2026-10-03 22:58:37 -05:00

32 lines
No EOL
820 B
Nix

{ inputs, lib, ... }:
{
xdg.configFile."hypr/plugins/split-monitor-workspaces".source = inputs.split-monitor-workspaces;
wayland.windowManager.hyprland = {
enable = true;
# set the Hyprland and XDPH packages to null to use the ones from the NixOS module
package = null;
portalPackage = null;
systemd.variables = ["--all"];
# extraLuaFiles = {
# smw-setup = {
# content = ''
# local smw = require('plugins.split-monitor-workspaces')
# smw.setup({
# workspace_count = 5
# })
# '';
# };
# };
settings = {
smw = {
_var = (lib.generators.mkLuaInline "require('plugins.split-monitor-workspaces')");
};
};
extraConfig = ''
smw.setup({
workspace_count = 5
})
'';
};
}