From e8cc900eaec34c2b7399678f0cd47c1b0e36a6ef Mon Sep 17 00:00:00 2001 From: talyz Date: Fri, 26 Nov 2021 14:11:05 +0100 Subject: [PATCH] make-disk-image: Make additionalPaths work with Nix 2.4 The `nix` command is marked as experimental since 2.4, so an extra flag is required to unlock it. --- nixos/lib/make-disk-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/make-disk-image.nix b/nixos/lib/make-disk-image.nix index 0a4a71fadc42..15302ae82414 100644 --- a/nixos/lib/make-disk-image.nix +++ b/nixos/lib/make-disk-image.nix @@ -281,7 +281,7 @@ let format' = format; in let --substituters "" ${optionalString (additionalPaths' != []) '' - nix copy --to $root --no-check-sigs ${concatStringsSep " " additionalPaths'} + nix --extra-experimental-features nix-command copy --to $root --no-check-sigs ${concatStringsSep " " additionalPaths'} ''} diskImage=nixos.raw