diff options
| -rw-r--r-- | krops.nix | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -267,19 +267,6 @@ rec { export NIX_PATH="$eval_dir" # - # Evaluate here, keeping the derivation for diff. - # - echo "$name: evaluating..." >&2 - drv=$(nix-instantiate \ - --show-trace \ - --add-root "$host_cache"/roots/"$name".drv \ - --argstr secretDirectory ${q "${target'.path}/secrets"} \ - --attr nixosConfigurations."$name".config.system.build.toplevel \ - '<hrm/legacy.nix>') - # nix-instantiate prints the GC root, a link to the derivation here. - drv=$(readlink -f -- "$drv") - - # # Choose the first builder that answers, and note its state. # builder_probe='printf "%s %s %s %s\n" "$(cut -d" " -f1 /proc/loadavg)" "$(nproc)" \ @@ -309,6 +296,19 @@ rec { builder_load=$1 builder_cpus=$2 builder_mem=$3 builder_disk=$4 # + # Evaluate here, keeping the derivation for diff. + # + echo "$name: evaluating..." >&2 + drv=$(nix-instantiate \ + --show-trace \ + --add-root "$host_cache"/roots/"$name".drv \ + --argstr secretDirectory ${q "${target'.path}/secrets"} \ + --attr nixosConfigurations."$name".config.system.build.toplevel \ + '<hrm/legacy.nix>') + # nix-instantiate prints the GC root, a link to the derivation here. + drv=$(readlink -f -- "$drv") + + # # Build on the builder, into its store, with a GC root there for as # long as this script runs, so the system stays until it's copied. # |
