Often I'm configuring a new service and having to run nixos-rebuild switch for the changes to take effect.

For example setting up a configuration for a webserver.

However the nixos-rebuild switch takes quite a few seconds to run. Is there a quicker alternative to rebuild just a subset of my Nixos configuration? I did notice a --fast parameter - however this does not seem to make much of any difference.


nixos-rebuild test - doesn't spend time in updating grub. Run nixos-rebuild switch or nixos-rebuild boot when configured to your heart's content

  • Is it possible to do nixos-rebuild without network access? Say all I want to do is a config change that shouldn't require any new packages. – Philippe Mar 11 '20 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.