diff options
Diffstat (limited to 'nixpkgs/nixos/modules/image/repart.nix')
-rw-r--r-- | nixpkgs/nixos/modules/image/repart.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nixpkgs/nixos/modules/image/repart.nix b/nixpkgs/nixos/modules/image/repart.nix index 4362982f5bac..4a0021e9a56e 100644 --- a/nixpkgs/nixos/modules/image/repart.nix +++ b/nixpkgs/nixos/modules/image/repart.nix @@ -88,6 +88,13 @@ in ''; }; + package = lib.mkPackageOption pkgs "systemd-repart" { + default = "systemd"; + example = lib.literalExpression '' + pkgs.systemdMinimal.override { withCryptsetup = true; } + ''; + }; + partitions = lib.mkOption { type = with lib.types; attrsOf (submodule partitionOptions); default = { }; @@ -178,9 +185,9 @@ in in pkgs.runCommand cfg.name { - nativeBuildInputs = with pkgs; [ - fakeroot - systemd + nativeBuildInputs = [ + cfg.package + pkgs.fakeroot ] ++ fileSystemTools; } '' amendedRepartDefinitions=$(${amendRepartDefinitions} ${partitions} ${definitionsDirectory}) |