Skip to content

Allow disabling remote build from the command line when using nix-daemon #1118

@k0001

Description

@k0001

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliThe old and/or new command line interfaceperformanceremote buildThe SSH store, ssh:, ssh-ng:, ... (split from protocol label 2024-07)tests
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions