refactor(flake): avoid import
s
This commit is contained in:
parent
6f79c94f11
commit
b57b8151ed
7 changed files with 54 additions and 63 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue