Add support for hermetic remote builds #20

Merged
MatthewCroughan merged 1 commit from mc/hermetic-remote into master 2022-05-30 18:53:20 +00:00
MatthewCroughan commented 2022-05-29 16:01:53 +00:00 (Migrated from github.com)

A hermetic remote rebuild is when Nixinate sends a specific Nix binary to the remote first, then uses it when activating a system closure, rather than using the Nix that is already on the remote. This is defaulted to false for the time being, as the bandwidth usage can be high. This allows users to avoid the need to bootstrap the remote first by enabling flakes on the remote Nix binary.

A hermetic remote rebuild is when Nixinate sends a specific Nix binary to the remote first, then uses it when activating a system closure, rather than using the Nix that is already on the remote. This is defaulted to false for the time being, as the bandwidth usage can be high. This allows users to avoid the need to bootstrap the remote first by enabling flakes on the remote Nix binary.
Kranzes (Migrated from github.com) requested changes 2022-05-29 17:04:34 +00:00
@ -18,1 +18,4 @@
overlay = final: prev: {
nixinate = {
nix = prev.pkgs.writeShellScriptBin "nix"
''${final.nixVersions.unstable}/bin/nix --experimental-features "nix-command flakes" "$@"'';
Kranzes (Migrated from github.com) commented 2022-05-29 17:04:22 +00:00

You should avoid using Unstable here. Since 2.4 flakes are supported.

You should avoid using Unstable here. Since 2.4 flakes are supported.
MatthewCroughan (Migrated from github.com) reviewed 2022-05-29 17:31:36 +00:00
@ -18,1 +18,4 @@
overlay = final: prev: {
nixinate = {
nix = prev.pkgs.writeShellScriptBin "nix"
''${final.nixVersions.unstable}/bin/nix --experimental-features "nix-command flakes" "$@"'';
MatthewCroughan (Migrated from github.com) commented 2022-05-29 17:31:36 +00:00

Evaluation time is getting better with Nix releases, so I'd rather use unstable, since 2.4 is pretty slow. Also, there are some determinism issues with lockfile generation that I'd prefer to avoid, by using the latest.

Evaluation time is getting better with Nix releases, so I'd rather use unstable, since 2.4 is pretty slow. Also, there are some determinism issues with lockfile generation that I'd prefer to avoid, by using the latest.
Sign in to join this conversation.
No description provided.