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

@ -0,0 +1,5 @@
{
imports = [
./hyprland
];
}

View file

@ -0,0 +1,30 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) mkIf;
cfgEnabled = config.myOptions.home-manager.wms.hyprland.enable;
# TODO: Switch to flake
hyprlandPkg = pkgs.hyprland;
xdgDesktopPortalHyprlandPkg = pkgs.xdg-desktop-portal-hyprland;
in {
config = mkIf cfgEnabled {
services.displayManager.sessionPackages = [hyprlandPkg];
xdg.portal = {
enable = true;
configPackages = [hyprlandPkg];
extraPortals = [xdgDesktopPortalHyprlandPkg];
};
programs.hyprland = {
enable = true;
package = hyprlandPkg;
portalPackage = xdgDesktopPortalHyprlandPkg;
};
};
}