diff --git a/nixos/modules/image/repart-image.nix b/nixos/modules/image/repart-image.nix index e62db75caf8f..49087d4786c5 100644 --- a/nixos/modules/image/repart-image.nix +++ b/nixos/modules/image/repart-image.nix @@ -173,11 +173,13 @@ stdenvNoCC.mkDerivation ( "--architecture=${systemdArch}" "--dry-run=no" "--size=auto" - "--seed=${seed}" "--definitions=${finalAttrs.finalRepartDefinitions}" "--split=${lib.boolToString split}" "--json=pretty" ] + ++ lib.optionals (seed != null) [ + "--seed=${seed}" + ] ++ lib.optionals createEmpty [ "--empty=create" ] diff --git a/nixos/modules/image/repart.nix b/nixos/modules/image/repart.nix index 13c90aa9ab7a..a44a2e5f9ea3 100644 --- a/nixos/modules/image/repart.nix +++ b/nixos/modules/image/repart.nix @@ -161,8 +161,9 @@ in # Generated with `uuidgen`. Random but fixed to improve reproducibility. default = "0867da16-f251-457d-a9e8-c31f9a3c220b"; description = '' - A UUID to use as a seed. You can set this to `null` to explicitly + A UUID to use as a seed. You can set this to `random` to explicitly randomize the partition UUIDs. + See {manpage}`systemd-repart(8)` for more information. ''; };