Weird xdg-desktop-portal-hyprland errors

Hello, I’m trying to get screensharing working and while checking that the hyprland xdg service was there and trying to stop/start or rebuild with the portal enabled I get these errors which seem to be logically conflicting.

error: builder for '/nix/store/3k001nb4m1z7nqc0jnqvcmzh2fpmg34y-user-units.drv' failed with exit code 1;
       last 1 log lines:
       > ln: failed to create symbolic link '/nix/store/n29cdii72f62avb15mpvd6sjpzvg058b-user-units/xdg-desktop-portal-hyprland.service': File exists
       For full logs, run 'nix log /nix/store/3k001nb4m1z7nqc0jnqvcmzh2fpmg34y-user-units.drv'.
error: 1 dependencies of derivation '/nix/store/yqklspq3gl1xz8wwi6b4yhqxv7d10b18-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k49924r23sgxksmb5i159zgzgc3swmfq-nixos-system-nixos-23.11.20231112.e44462d.drv' failed to build
FAIL

eureka@nixos: ~/.config/dotfiles tensorbook!
$ fg                                                                                                                                                                           [12:27:12]
[1]  + 2965 continued  hx .
[1]  + 2965 suspended (signal)  hx .
FAIL

eureka@nixos: ~/.config/dotfiles tensorbook!
$ sudo systemctl stop xdg-desktop-portal-hyprland                                                                                                                              [12:28:32]
Failed to stop xdg-desktop-portal-hyprland.service: Unit xdg-desktop-portal-hyprland.service not loaded.
FAIL

eureka@nixos: ~/.config/dotfiles tensorbook!
$ sudo systemctl start xdg-desktop-portal-hyprland                                                                                                                             [12:29:08]
Failed to start xdg-desktop-portal-hyprland.service: Unit xdg-desktop-portal-hyprland.service not found.
FAIL

Does anyone know what’s going on here? I’m using hyprland and an nvidia rtx 3070ti laptop card.

1 Like