feat(hyprland): keep gtk portal as fallback
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-18 11:15:31 -04:00
parent aacee2d4d7
commit 8212ac2e82

View file

@ -7,6 +7,8 @@
}: let }: let
inherit (lib) concatStringsSep optionals; inherit (lib) concatStringsSep optionals;
inherit (config.vars) mainUser; inherit (config.vars) mainUser;
cfg = config.programs.hyprland;
in { in {
# SYSTEM CONFIG # SYSTEM CONFIG
imports = [ imports = [
@ -35,6 +37,11 @@ in {
portalPackage = xdg-desktop-portal-hyprland; portalPackage = xdg-desktop-portal-hyprland;
}; };
xdg.portal.extraPortals = [
cfg.portalPackage
pkgs.xdg-desktop-portal-gtk
];
# HOME-MANAGER CONFIG # HOME-MANAGER CONFIG
home-manager.users.${mainUser} = { home-manager.users.${mainUser} = {
imports = [ imports = [
@ -46,7 +53,7 @@ in {
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = config.programs.hyprland.finalPackage; package = cfg.finalPackage;
systemd.variables = ["-all"]; systemd.variables = ["-all"];