diff options
author | Atemu <atemu.main@gmail.com> | 2023-11-28 17:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-28 17:31:08 +0100 |
commit | 6fc4c1c40c98de86565acdb3fe43c6ba3efb3115 (patch) | |
tree | 3a2b423ea02bb74274e1bbdc46d310f0694c66e2 /nixos/modules/profiles | |
parent | 7da99477cac9316f2cb7de83c0aabe53308f5325 (diff) | |
parent | f3e9d7f84bfc569b5bf85c43d1b25d8770b0d7b4 (diff) |
Merge pull request #268574 from hercules-ci/linux-builder-no-eval
darwin.linux-builder: Disable evaluation
Diffstat (limited to 'nixos/modules/profiles')
-rw-r--r-- | nixos/modules/profiles/macos-builder.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/profiles/macos-builder.nix b/nixos/modules/profiles/macos-builder.nix index d48afed18f7e..6c2602881d6b 100644 --- a/nixos/modules/profiles/macos-builder.nix +++ b/nixos/modules/profiles/macos-builder.nix @@ -103,6 +103,19 @@ in # server that QEMU provides (normally 10.0.2.3) networking.nameservers = [ "8.8.8.8" ]; + # The linux builder is a lightweight VM for remote building; not evaluation. + nix.channel.enable = false; + # remote builder uses `nix-daemon` (ssh-ng:) or `nix-store --serve` (ssh:) + # --force: do not complain when missing + # TODO: install a store-only nix + # https://github.com/NixOS/rfcs/blob/master/rfcs/0134-nix-store-layer.md#detailed-design + environment.extraSetup = '' + rm --force $out/bin/{nix-instantiate,nix-build,nix-shell,nix-prefetch*,nix} + ''; + # Deployment is by image. + # TODO system.switch.enable = false;? + system.disableInstallerTools = true; + nix.settings = { auto-optimise-store = true; |