mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
make-disk-image: optionally include ZFS module in kernel
This commit is contained in:
parent
b4afc8bab8
commit
f78b6498f6
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ let
|
|||
vmTools = pkgs.vmTools.override {
|
||||
rootModules = ["9p" "9pnet_virtio" "virtio_pci" "virtio_blk"] ++ nixosConfig.config.disko.extraRootModules;
|
||||
kernel = pkgs.aggregateModules
|
||||
(with nixosConfig.config.boot.kernelPackages; [ kernel ]);
|
||||
(with nixosConfig.config.boot.kernelPackages; [ kernel ]
|
||||
++ lib.optional (lib.elem "zfs" nixosConfig.config.disko.extraRootModules) zfs);
|
||||
};
|
||||
cleanedConfig = diskoLib.testLib.prepareDiskoConfig nixosConfig.config diskoLib.testLib.devices;
|
||||
systemToInstall = nixosConfig.extendModules {
|
||||
|
|
Loading…
Reference in a new issue