41 lines
807 B
Nix
41 lines
807 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;
|
||
|
config.common = {
|
||
|
default = [
|
||
|
"gtk"
|
||
|
"kde"
|
||
|
];
|
||
|
};
|
||
|
extraPortals = [
|
||
|
pkgs.xdg-desktop-portal-gtk
|
||
|
pkgs.xdg-desktop-portal-kde
|
||
|
];
|
||
|
};
|
||
|
|
||
|
environment = {
|
||
|
systemPackages = builtins.attrValues {
|
||
|
inherit (pkgs)
|
||
|
slurp
|
||
|
grim
|
||
|
wf-recorder
|
||
|
fuzzel
|
||
|
alacritty
|
||
|
wl-clipboard
|
||
|
;
|
||
|
};
|
||
|
sessionVariables = {
|
||
|
"NIXOS_OZONE_WL" = "1";
|
||
|
"QT_QPA_PLATFORM" = "wayland";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|