alqueva/hosts/shared/support.nix
Artur Manuel 5b2a8031c2 chore(emergency): commit everything to prepare for a reinstall
What happened? My system OOM'd, and now my entire system is broken.

I have to reinstall *everything*.
2025-02-08 22:24:28 +00:00

28 lines
490 B
Nix

{
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;
xdgOpenUsePortal = true;
};
environment.systemPackages = [
pkgs.wl-clipboard
];
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
};
}