I am trying to install xdg-desktop-portal-hyprland from the hyprland flake. The reason for this is that the startup time for all gtk apps is really slow (2-4 seconds). But when I rebuild, the portal is compiled whithout errors but at the end I get a linking error:
user-units> ln: failed to create symbolic link '/nix/store/442lzr8p7bs0pnwq444j4241cmgkv5cp-user-units/xdg-desktop-portal-hyprland.service': File exists
error: builder for '/nix/store/jmviwg1wj3qcqrdw381g8qiynfbq6fgd-user-units.drv' failed with exit code 1;
last 1 log lines:
> ln: failed to create symbolic link '/nix/store/442lzr8p7bs0pnwq444j4241cmgkv5cp-user-units/xdg-desktop-portal-hyprland.service': File exists
For full logs, run 'nix log /nix/store/jmviwg1wj3qcqrdw381g8qiynfbq6fgd-user-units.drv'.
error: 1 dependencies of derivation '/nix/store/0jrmq7wvs5lbjsz7877xb3div4sx3fn4-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xfsdbwzkq26xahjjyfibb5frrwpl134h-nixos-system-desktop-25.05.20241219.d70bd19.drv' failed to build
ββ 1 Errors:
β error: builder for '/nix/store/jmviwg1wj3qcqrdw381g8qiynfbq6fgd-user-units.drv' failed with exit code 1;
β last 1 log lines:
β > ln: failed to create symbolic link '/nix/store/442lzr8p7bs0pnwq444j4241cmgkv5cp-user-units/xdg-desktop-portal-hyprland.serviβ¦
β For full logs, run 'nix log /nix/store/jmviwg1wj3qcqrdw381g8qiynfbq6fgd-user-units.drv'.
β£β Dependency Graph:
β ββ β unit-accounts-daemon.service β± 3s
β β ββ β X-Restart-Triggers-polkit β± 3s
β ββ β unit-polkit.service β± 3s
β ββ β unit-dbus.service β± 1s
β ββ β system-units β± 1s
β β ββ β system-path β± 5s
β β ββ β dbus-1 β± 1s
β β ββ β X-Restart-Triggers-dbus β± 1s
β β ββ β unit-dbus.service β± 1s
β ββ β user-units failed with exit code 1 after β± 0s
β ββ βΈ etc
β βΈ nixos-system-desktop-25.05.20241219.d70bd19
β£βββ Builds β Downloads β Host
β β β 27 β β β β β localhost
β β β β β β 93 β β https://cache.nixos.org
ββ β β΅ 0 β β 27 β βΈ 2 β β 0 β β 93 β βΈ 0 β β Exited after 1 build failures at 10:54:14 after 4m43s
Error:
0: Command exited with status Exited(1)
Here is how I try to install the portal:
{ inputs, pkgs, ... }:
{
programs.hyprland.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;
xdgOpenUsePortal = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
];
};
}
Does anyone know what could cause this issue ?
And is that even something that could fix the slow gtk app startup time ?