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
If I run gc and then home-manager switch --flake . I get
Home Manager not found at /nix/store/9613fxrf433y10fz18ccixj4zpmdibzq-source.
[...]
error: file 'home-manager/home-manager/build-news.nix' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
Gerschtli
changed the title
bug: home-manager with flake setup produces error on switch
bug: home-manager path is garbage collected in flake setup
Apr 30, 2024
I think I'm facing the same problem; the first time I ran home-manager switch everything was fine. After that, I got the error:
error: file 'home-manager/home-manager/home-manager.nix' was not found ...
at <<none>>:0: (source not available)
when I run nix-shell -p home-manager everything works as expected again (yes, I added home-manager as a package in configuration.nix and ran sudo nixos-rebuild switch to verify that I'm at the newest version).
I'm new to nixos so I could definitely done something wrong.
Are you following the right branch?
Is there an existing issue for this?
Issue description
If I run gc and then
home-manager switch --flake .
I getThe line https://github.com/nix-community/home-manager/blob/master/flake.nix#L81 despite
"${./.}"
does not seem to create a gc root in my nix store.Full config is available at https://github.com/Gerschtli/nix-config (
github:Gerschtli/nix-config#homeConfigurations.tobiashapp@bwpm-FP2CYXKY2V
).Maintainer CC
@Kareem-Medhat (as it seems to be related to #5205)
@rycee
System information
The text was updated successfully, but these errors were encountered: