about summary refs log tree commit diff
path: root/tools/nixery/build-image/build-image.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nixery/build-image/build-image.nix')
-rw-r--r--tools/nixery/build-image/build-image.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/nixery/build-image/build-image.nix b/tools/nixery/build-image/build-image.nix
index d4df707a8a3a..eb14d52424bc 100644
--- a/tools/nixery/build-image/build-image.nix
+++ b/tools/nixery/build-image/build-image.nix
@@ -25,6 +25,7 @@
   # Description of the package set to be used (will be loaded by load-pkgs.nix)
   srcType ? "nixpkgs",
   srcArgs ? "nixos-19.03",
+  system ? "x86_64-linux",
   importArgs ? { },
   # Path to load-pkgs.nix
   loadPkgs ? ./load-pkgs.nix,
@@ -46,7 +47,12 @@ let
 
   inherit (pkgs) lib runCommand writeText;
 
-  pkgs = import loadPkgs { inherit srcType srcArgs importArgs; };
+  pkgs = import loadPkgs {
+    inherit srcType srcArgs;
+    importArgs = importArgs // {
+      inherit system;
+    };
+  };
 
   # deepFetch traverses the top-level Nix package set to retrieve an item via a
   # path specified in string form.