Nix-Config/modules/home/nyxerinys/linux/hyprland.nix

33 lines
No EOL
812 B
Nix

{ inputs, lib, ... }:
{
imports = [
inputs.hyprland.homeManagerModules.default
];
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 = ''
'';
};
}