diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix index 3a01a6dc80f1..b3458a414ba9 100644 --- a/nixos/modules/image/repart-image.nix +++ b/nixos/modules/image/repart-image.nix @@ -109,6 +109,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 7422233828a3..d78637734b8f 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"; + }; + })); }; };