diff --git a/nixos/desktop/window-managers/hyprland.nix b/nixos/desktop/window-managers/hyprland.nix index 4c9d8e0..e56a3fd 100644 --- a/nixos/desktop/window-managers/hyprland.nix +++ b/nixos/desktop/window-managers/hyprland.nix @@ -47,6 +47,21 @@ }; security.polkit.enable = true; + + systemd.user.services.xdg-desktop-portal = { + Unit.After = [ "dbus.service" ]; + Service = { + Type = "dbus"; + BusName = "org.freedesktop.impl.portal.Service"; + Restart = "on-failure"; + ExecStart = "${pkgs.xdg-desktop-portal}/libexec/xdg-desktop-portal"; + RestartSec = 3; + PrivateUsers = false; + RestrictNamespaces = false; + SystemCallFilter = null; + }; + }; + environment.systemPackages = with pkgs; [ glib dconf