alqueva/computers/shared/support.nix

47 lines
825 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
];
};
environment = {
systemPackages = builtins.attrValues {
2024-11-30 11:43:52 +00:00
inherit
(pkgs)
slurp
grim
wf-recorder
fuzzel
2024-11-30 11:43:52 +00:00
wezterm
wl-clipboard
;
};
sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
};
};
}