nixos-config

NixOS configs for my systems
Log | Files | Refs

commit b6411790c8e145f4a19ecfb3dd39df0c9e33a869
parent 988aca5d5c981d7352b86b8d67727d1227c949fa
Author: vin <vin@vineetk.net>
Date:   Mon, 19 May 2025 15:13:21 -0400

demiurge, hastur: finally got xdg-desktop-portal working

Diffstat:
Mhome.nix | 24++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)

diff --git a/home.nix b/home.nix @@ -1117,6 +1117,18 @@ in xdg = { enable = true; + portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-luminous ]; + config.sway = { + default = [ "luminous" ]; + "org.freedesktop.impl.portal.Screenshot" = [ "luminous" ]; + "org.freedesktop.impl.portal.ScreenCast" = [ "luminous" ]; + "org.freedesktop.impl.portal.Settings" = [ "luminous" ]; + "org.freedesktop.impl.portal.RemoteDesktop" = [ "luminous" ]; + }; + }; + configFile = { "qutebrowser/theme.py".text = '' # Colors. @@ -1507,6 +1519,18 @@ in }; extraConfig = '' + # I hate xdg-desktop-portal + exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway + exec systemctl --user import-environment DISPLAY \ + SWAYSOCK \ + WAYLAND_DISPLAY \ + XDG_CURRENT_DESKTOP + exec hash dbus-update-activation-environment 2>/dev/null && \ + dbus-update-activation-environment --systemd DISPLAY \ + SWAYSOCK \ + XDG_CURRENT_DESKTOP=sway \ + WAYLAND_DISPLAY + mouse_warping container blur enable