nixos/hyprland: disable wlr-portal for Hyprland

This commit:
- Adds wlr-portal override of wayland-session module (enabled by default)
- Disable it for hyprland module
This commit is contained in:
John Titor 2024-05-30 12:31:10 +05:30
parent 63aceac766
commit 0b0b7cefcc
No known key found for this signature in database
GPG Key ID: 29B0514F4E3C1CC0
2 changed files with 8 additions and 2 deletions

View File

@ -70,6 +70,7 @@ in
(import ./wayland-session.nix {
inherit lib pkgs;
xwayland = cfg.xwayland.enable;
wlr-portal = false; # Hyprland has its own portal, wlr is not needed
})
]);

View File

@ -1,4 +1,9 @@
{ lib, pkgs, xwayland ? true }:
{
lib,
pkgs,
xwayland ? true,
wlr-portal ? true,
}:
{
security = {
@ -14,5 +19,5 @@
xwayland.enable = lib.mkDefault xwayland;
};
xdg.portal.wlr.enable = lib.mkDefault true;
xdg.portal.wlr.enable = wlr-portal;
}