When using nix-daemon to build stuff remotely (for example, when setting nix.distributedBuilds = true in /etc/nixos/configuration.nix), it doesn't seem to be possible to temporarily force the builds to happen locally when calling nix-build.
What I would like is to be able to say something like nix-build --build-locally foo and have foo be built locally, overriding whatever default behavior was set for nix-daemon. This is useful because sometimes one wants to avoid having to upload a lot of dependencies to the remote end just to build a small package.
If there already is a way to temporarily disable this other than setting nix.distributedBuilds = false and calling nixos-rebuild switch, please let me know :)
When using
nix-daemonto build stuff remotely (for example, when settingnix.distributedBuilds = truein/etc/nixos/configuration.nix), it doesn't seem to be possible to temporarily force the builds to happen locally when callingnix-build.What I would like is to be able to say something like
nix-build --build-locally fooand havefoobe built locally, overriding whatever default behavior was set fornix-daemon. This is useful because sometimes one wants to avoid having to upload a lot of dependencies to the remote end just to build a small package.If there already is a way to temporarily disable this other than setting
nix.distributedBuilds = falseand callingnixos-rebuild switch, please let me know :)