alqueva/hosts/shared/support.nix

35 lines
627 B
Nix
Raw Normal View History

2024-11-30 11:43:52 +00:00
{
config,
lib,
pkgs,
...
}: 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;
config.common = {
default = [
"gtk"
"kde"
];
};
extraPortals = [
pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-kde
];
};
2024-12-10 23:03:51 +00:00
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
2024-12-10 15:12:00 +00:00
programs.waybar.enable = true;
};
}