refactor(flake): avoid imports

This commit is contained in:
Artur Manuel 2025-02-04 11:10:02 +00:00
commit b57b8151ed
7 changed files with 54 additions and 63 deletions

View file

@ -1,7 +1,6 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.alqueva.support;
@ -11,19 +10,14 @@ in {
wayland = mkEnableOption "wayland support";
};
config = lib.mkIf cfg.wayland {
xdg.portal = lib.mkDefault {
xdg.portal = {
enable = true;
config.common = {
default = ["gtk"];
};
extraPortals = [pkgs.xdg-desktop-portal-gtk];
xdgOpenUsePortal = true;
};
environment.sessionVariables = {
"NIXOS_OZONE_WL" = "1";
"QT_QPA_PLATFORM" = "wayland";
};
services.gnome.gnome-keyring.enable = true;
};
}