nichts/modules/wms/wayland/hyprland/module.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{
config,
pkgs,
lib,
...
}: let
cfg = config.modules.usrEnv.desktops.hyprland;
2024-11-01 14:51:13 +01:00
# inherit (inputs.hyprsplit.packages.${pkgs.system}) hyprsplit;
inherit (lib) mkIf mkDefault;
in {
imports = [
./binds.nix
./decorations.nix
./exec.nix
./settings.nix
./workspaces.nix
./nixos-module.nix
];
# we disable the default hyprland module
disabledModules = ["programs/hyprland.nix"];
config = mkIf cfg.enable {
programs.hyprland = {
enable = true;
xwayland.enable = true;
package = pkgs.hyprland;
portalPackage = pkgs.xdg-desktop-portal-hyprland;
plugins = [
pkgs.hyprlandPlugins.hyprsplit
pkgs.hyprlandPlugins.hy3
pkgs.hyprlandPlugins.hypr-dynamic-cursors
];
};
# xdg Portal
xdg.portal = {
enable = true;
configPackages = mkDefault [
pkgs.xdg-desktop-portal-hyprland
];
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-hyprland
];
config = {
common.default = ["gtk" "hyprland"];
};
};
};
}