alqueva/hosts/shared/support.nix

24 lines
415 B
Nix
Raw Normal View History

2024-11-30 11:43:52 +00:00
{
config,
lib,
...
}: let
cfg = config.alqueva.support;
inherit (lib) mkEnableOption;
in {
options.alqueva.support = {
wayland = mkEnableOption "wayland support";
};
config = lib.mkIf cfg.wayland {
2025-02-04 11:10:02 +00:00
xdg.portal = {
enable = true;
2025-02-04 11:10:02 +00:00
xdgOpenUsePortal = true;
};
2024-12-10 23:03:51 +00:00
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
};
}