You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior
nixos-option from profile/core/default.nix should still works after nix-collect-garbage -d profile/core/default.nix includes an alias to fix nixos-option:
terminate called after throwing an instance of 'nix::EvalError'
what(): cannot import '/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source/flake.nix', since path
'/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source' is not valid, at /nix/store/2mpgi4bvn8py4liv9
w3mjxd2c5r7bvv8-source/default.nix:131:19
fish: Job 1, “command nixos-option -I nixpkgs…” terminated by signal SIGABRT (Abort)
Possible Solution
The nixpkgs used by flake-compat in compat/default.nix has no referrers, which is why it’s got garbage collect.
I don’t know enough of Nix to add some kind of references to the nixpkgs source to fix this.
Steps to Reproduce
nixos-rebuild switch
nix-collect-garbage -d
nixos-option errors
Context
nixos-option use /nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source/
which is included in gc print-dead.
> nixos-option services.earlyoom
unpacking 'https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz'...
terminate called after throwing an instance of 'nix::EvalError'what(): cannot import '/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source/flake.nix', since path
'/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source' is not valid, at /nix/store/2mpgi4bvn8py4liv9
w3mjxd2c5r7bvv8-source/default.nix:131:19
fish: Job 1, “command nixos-option -I nixpkgs…” terminated by signal SIGABRT (Abort)
> nix-store -q --references /nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source
> nix-store --gc --print-dead | rg /nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source
finding garbage collector roots...
removing stale link from '/nix/var/nix/gcroots/auto/xmssbbj2d1pfm51cqci88ggxnmi3j9dj' to '/tmp/nixos-rebuild.CRuJ2V/result'
determining live/dead paths...
/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source
Your Environment
The text was updated successfully, but these errors were encountered:
@nrdxp So what is currently referring that nixpkgs which nixos-option is using?
On my two machines, all no referrers(the store path may varies).
❯ nix-store -q --referrers /nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source
Your issue may already be reported!
Please search on the issue tracker before creating one.
Expected Behavior
nixos-option
fromprofile/core/default.nix
should still works afternix-collect-garbage -d
profile/core/default.nix
includes an alias to fixnixos-option
:Current Behavior
nixos-option
:Possible Solution
The nixpkgs used by
flake-compat
incompat/default.nix
has no referrers, which is why it’s got garbage collect.I don’t know enough of Nix to add some kind of references to the
nixpkgs source
to fix this.Steps to Reproduce
Context
nixos-option use
/nix/store/slf28rxb23rmx2qgid4bwfifwbkyb5ji-dxl4kb7jclicnk2mignizz53bk8wl9z4-source/
which is included in gc print-dead.
Your Environment
The text was updated successfully, but these errors were encountered: