Add various system-wide wayland settings

This commit is contained in:
ItsDrike 2024-06-22 14:15:25 +02:00
parent df09ddc1b4
commit 12ae728903
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
9 changed files with 141 additions and 0 deletions

View file

@ -8,6 +8,10 @@
hyprPkgs = (import ./packages {inherit pkgs;});
# TODO: Switch to flake
hyprlandPkg = pkgs.hyprland;
xdgDesktopPortalHyprlandPkg = pkgs.xdg-desktop-portal-hyprland;
cfg = osConfig.myOptions.home-manager.wms.hyprland;
in {
imports = [
@ -30,10 +34,19 @@ in {
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
package = hyprlandPkg;
systemd = {
enable = true;
variables = ["--all"];
};
};
xdg.portal = {
enable = true;
configPackages = [hyprlandPkg];
extraPortals = [
xdgDesktopPortalHyprlandPkg
];
};
};
}