
What happened? My system OOM'd, and now my entire system is broken. I have to reinstall *everything*.
28 lines
490 B
Nix
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";
|
|
};
|
|
};
|
|
}
|