File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,17 @@ timeout_ssh_() {
100
100
ssh_ () {
101
101
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $ssh_connection " " $@ "
102
102
}
103
- nixCopy () {
104
- NIX_SSHOPTS=' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' nix copy --extra-experimental-features nix-command " $@ "
103
+ nix_copy () {
104
+ NIX_SSHOPTS=' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' nix copy \
105
+ --extra-experimental-features ' nix-command flakes' \
106
+ " $@ "
105
107
}
106
108
nix_build () {
107
- nix \
108
- --experimental-features flakes build \
109
- --extra-experimental-features nix-command \
109
+ nix build \
110
+ --extra-experimental-features ' nix-command flakes' \
110
111
--no-write-lock-file \
111
112
--print-out-paths \
113
+ --no-link \
112
114
" $@ "
113
115
}
114
116
216
218
ssh_ " umask 077; cat > $path " < " ${disk_encryption_keys[$path]} "
217
219
done
218
220
219
- nixCopy --to " ssh://$ssh_connection " " $disko_script "
221
+ nix_copy --to " ssh://$ssh_connection " " $disko_script "
220
222
ssh_ " $disko_script "
221
223
222
224
if [[ ${stop_after_disko-n} == " y" ]]; then
223
225
exit 0
224
226
fi
225
227
226
- nixCopy --to " ssh://$ssh_connection ?remote-store=local?root=/mnt" " $nixos_system "
228
+ nix_copy --to " ssh://$ssh_connection ?remote-store=local?root=/mnt" " $nixos_system "
227
229
if [[ -n ${extra_files:- } ]]; then
228
230
if [[ -d " $extra_files " ]]; then
229
231
extra_files=" $extra_files /"
You can’t perform that action at this time.
0 commit comments