trying to apply config with nh fails #483
-
|
I'm trying to use nh to basically do Which is odd cuz running with nixos-rebuild works just fine, so maybe I didn't use the correct nh command ? I'm kinda confused |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
It is E.g., The critical thing to note here is that it takes a path, not an installable ref. flake.nix and the installable are constructed automatically. It is also recommended that you set NH_FLAKE variable so you may rebuild without pass a path each time. |
Beta Was this translation helpful? Give feedback.
It is
nh os switch /path/to/flake/dir -H hostnameE.g.,
nh os switch ~dots -H myHostThe critical thing to note here is that it takes a path, not an installable ref. flake.nix and the installable are constructed automatically. It is also recommended that you set NH_FLAKE variable so you may rebuild without pass a path each time.