diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix index 9b4447b18816..35caf88484ca 100644 --- a/nixos/modules/image/repart-image.nix +++ b/nixos/modules/image/repart-image.nix @@ -110,6 +110,7 @@ let "btrfs" = [ btrfs-progs ]; "xfs" = [ xfsprogs ]; "swap" = [ util-linux ]; + "empty" = [ ]; }; fileSystemTools = builtins.concatMap (f: fileSystemToolMapping."${f}") fileSystems; diff --git a/nixos/tests/appliance-repart-image.nix b/nixos/tests/appliance-repart-image.nix index bba163b463e4..bd11bdc1de28 100644 --- a/nixos/tests/appliance-repart-image.nix +++ b/nixos/tests/appliance-repart-image.nix @@ -90,7 +90,16 @@ in Minimize = "guess"; }; }; - }; + } + // (lib.genAttrs [ "squashfs" "erofs" "btrfs" "xfs" "swap" "empty" ] (fsType: { + repartConfig = { + Type = "linux-generic"; + Format = fsType; + + SizeMinBytes = "10M"; + SizeMaxBytes = "10M"; + }; + })); }; };