about summary refs log tree commit diff
path: root/nixos/maintainers
diff options
context:
space:
mode:
authorArthur Gautier <arthur.gautier@arista.com>2023-10-31 11:01:46 -0700
committerArthur Gautier <arthur.gautier@arista.com>2024-05-09 09:48:07 -0700
commit69c2090e988b0a062b9ac2fa178e39989e2e080c (patch)
tree8608d231c9920a30910c4e4f1bcfee2fab01849e /nixos/maintainers
parentbaa26b9fb9e391f8dda9709767517760b96865da (diff)
amazon-image: allow pkgs overrides
By reimporting pkgs this drops overlays.

This reverts 0d3738cdcc48bd32a7eae9b914440b67c8db252e
(`Fix the EC2 test`). Reasoning behind the reimport is blurry to me.
Diffstat (limited to 'nixos/maintainers')
-rw-r--r--nixos/maintainers/scripts/ec2/amazon-image.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/maintainers/scripts/ec2/amazon-image.nix b/nixos/maintainers/scripts/ec2/amazon-image.nix
index 357b86367d984..8b6a9bc52b128 100644
--- a/nixos/maintainers/scripts/ec2/amazon-image.nix
+++ b/nixos/maintainers/scripts/ec2/amazon-image.nix
@@ -71,9 +71,8 @@ in {
       '';
 
     zfsBuilder = import ../../../lib/make-multi-disk-zfs-image.nix {
-      inherit lib config configFile;
+      inherit lib config configFile pkgs;
       inherit (cfg) contents format name;
-      pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
 
       includeChannel = true;
 
@@ -120,10 +119,9 @@ in {
     };
 
     extBuilder = import ../../../lib/make-disk-image.nix {
-      inherit lib config configFile;
+      inherit lib config configFile pkgs;
 
       inherit (cfg) contents format name;
-      pkgs = import ../../../.. { inherit (pkgs) system; }; # ensure we use the regular qemu-kvm package
 
       fsType = "ext4";
       partitionTableType = if config.ec2.efi then "efi" else "legacy+gpt";