alqueva/hosts/shared/support.nix
2025-02-04 11:10:02 +00:00

23 lines
415 B
Nix

{
config,
lib,
...
}: let
cfg = config.alqueva.support;
inherit (lib) mkEnableOption;
in {
options.alqueva.support = {
wayland = mkEnableOption "wayland support";
};
config = lib.mkIf cfg.wayland {
xdg.portal = {
enable = true;
xdgOpenUsePortal = true;
};
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
};
}