2024-11-30 11:43:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
2024-11-25 21:04:18 +00:00
|
|
|
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 = {
|
2024-11-25 21:04:18 +00:00
|
|
|
enable = true;
|
2025-02-04 11:10:02 +00:00
|
|
|
xdgOpenUsePortal = true;
|
2024-11-25 21:04:18 +00:00
|
|
|
};
|
|
|
|
|
2024-12-10 23:03:51 +00:00
|
|
|
environment.sessionVariables = {
|
|
|
|
"NIXOS_OZONE_WL" = "1";
|
|
|
|
"QT_QPA_PLATFORM" = "wayland";
|
2024-11-25 21:04:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|