mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-30 12:20:41 +00:00
Add various system-wide wayland settings
This commit is contained in:
parent
df09ddc1b4
commit
12ae728903
9 changed files with 141 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue