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
This is a follow-up to #206. This issue has a relatively easy workaround.
The --update flag to nh home switch does not work with -- --impure (the command succeeds, but the update never happens). This seems to
be because it causes nh to invoke
Fortunately, there is a workaround of running nix flake update --flake /Users/ilyagr/.config/home-manager/ --impure manually instead of using nh home switch --update.
Thinking out loud: looking at b2a9724 , I also wonder what other arguments people would want to pass to nix build by using nh home switch -- extra_args, and whether those arguments make sense for nix eval or nix flake update. I am not sure whether this is an issue. It doesn't affect me, but if that becomes a problem, then maybe the nh home commands do need an --impure flag after all, or they could recognize when -- --impure is present.
ilyagr
changed the title
home switch --update -- --impure does not workhome switch --update -- --impure silently fails to update
Jan 4, 2025
This is a follow-up to #206. This issue has a relatively easy workaround.
The
--update
flag tonh home switch
does not work with-- --impure
(the command succeeds, but the update never happens). This seems tobe because it causes
nh
to invokewhen it should be
Fortunately, there is a workaround of running
nix flake update --flake /Users/ilyagr/.config/home-manager/ --impure
manually instead of usingnh home switch --update
.The text was updated successfully, but these errors were encountered: