30 lines
490 B
Nix
30 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";
|
|
};
|
|
};
|
|
}
|