mirror of
https://github.com/nix-community/disko.git
synced 2024-09-19 18:47:16 +03:00
make-disk-image: allow extra dependencies to be passed into image builder
This commit is contained in:
parent
bb75ad0b1d
commit
4c4634bbcb
@ -27,7 +27,7 @@ let
|
|||||||
systemdMinimal
|
systemdMinimal
|
||||||
nix
|
nix
|
||||||
util-linux
|
util-linux
|
||||||
];
|
] ++ nixosConfig.config.disko.extraDependencies;
|
||||||
preVM = ''
|
preVM = ''
|
||||||
${lib.concatMapStringsSep "\n" (disk: "truncate -s ${disk.imageSize} ${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
|
${lib.concatMapStringsSep "\n" (disk: "truncate -s ${disk.imageSize} ${disk.name}.raw") (lib.attrValues nixosConfig.config.disko.devices.disk)}
|
||||||
'';
|
'';
|
||||||
|
@ -29,6 +29,13 @@ in
|
|||||||
default = { };
|
default = { };
|
||||||
description = "The devices to set up";
|
description = "The devices to set up";
|
||||||
};
|
};
|
||||||
|
extraDependencies = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.package;
|
||||||
|
description = ''
|
||||||
|
list of extra packages to make available in the make-disk-image.nix VM builder, an example might be f2fs-tools
|
||||||
|
'';
|
||||||
|
default = [];
|
||||||
|
};
|
||||||
rootMountPoint = lib.mkOption {
|
rootMountPoint = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "/mnt";
|
default = "/mnt";
|
||||||
|
Loading…
Reference in New Issue
Block a user