Hi
I’ve recently tried to install via flake the Zen browser, but since then trying I get the following error when rebuilding (using sudo nixos-rebuild switch --flake /etc/nixos/#default --impure
):
error: builder for '/nix/store/qapc7iiazgzd3i61i2gklm3w9qigp7ba-user-units.drv' failed with exit code 1;
last 1 log lines:
> ln: failed to create symbolic link '/nix/store/yhc097ggn5bga30fdpxaba8l55s5mv3n-user-units/xdg-desktop-portal-gtk.service': File exists
For full logs, run 'nix log /nix/store/qapc7iiazgzd3i61i2gklm3w9qigp7ba-user-units.drv'.
error: 1 dependencies of derivation '/nix/store/j7zdnw18y88n1kzqjckl60nj3axd3a87-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y8hwz6j8nvknvilay0z1lzkq6jpm5l9h-nixos-system-nixos-24.11.20241001.27e30d1.drv' failed to build
nix log /nix/store/qapc7iiazgzd3i61i2gklm3w9qigp7ba-user-units.drv
doesn’t give any additionnal informations.
Since then I have removed anything related to the Zen browser, so it’s probably not related since the problem persist.
The only lines related to xdg-desktop-portal
in my confirguration.nix
are:
xdg.portal.enable = true;
xdg.portal.extraPortals = [pkgs.xdg-desktop-portal-gtk];
Removing them doesn’t change anything, only change is when i put xdg.portal.enable
to false
, as gnome already declare it at true
.
I’ve tried:
sudo nix-collect-garbage -d
nix store delete /nix/store/***-user-units/xdg-desktop-portal-gtk.service
sudo nixos-rebuild switch --flake /etc/nixos/#default --impure --repair
Without any success sadly.
Internet did not found any similar problems.
While I’ve been using Linux for some time now, I am very new to NixOS, and to be honest, quite lost.
nix-shell -p nix-info --run "nix-info -m"
outputs:
- system: `"x86_64-linux"`
- host os: `Linux 6.6.52, NixOS, 24.11 (Vicuna), 24.11.20240929.06cf0e1`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.8`
- nixpkgs: `/nix/store/r2hk87rfvc5fpfbl2bj64a3x7mcq9f6c-source`
Any help would be appreciated!