mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 13:03:28 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9067124b0d |
@@ -14,6 +14,7 @@ let
|
||||
checked = diskoCfg.checkScripts;
|
||||
|
||||
configSupportsZfs = config.boot.supportedFilesystems.zfs or false;
|
||||
configSupportsBcachefs = config.boot.supportedFilesystems.bcachefs or false;
|
||||
binfmt = diskoLib.binfmt {
|
||||
inherit
|
||||
diskoLib
|
||||
@@ -41,6 +42,7 @@ let
|
||||
"virtio_rng"
|
||||
]
|
||||
++ (lib.optional configSupportsZfs "zfs")
|
||||
++ (lib.optional configSupportsBcachefs "bcachefs")
|
||||
++ cfg.extraRootModules;
|
||||
kernel = pkgs.aggregateModules (
|
||||
[
|
||||
@@ -50,6 +52,10 @@ let
|
||||
++ lib.optional (
|
||||
lib.elem "zfs" cfg.extraRootModules || configSupportsZfs
|
||||
) cfg.kernelPackages.${config.boot.zfs.package.kernelModuleAttribute}
|
||||
++ lib.optional (
|
||||
(lib.elem "bcachefs" cfg.extraRootModules || configSupportsBcachefs)
|
||||
&& pkgs.bcachefs-tools ? kernelModule
|
||||
) (cfg.kernelPackages.callPackage pkgs.bcachefs-tools.kernelModule { })
|
||||
);
|
||||
}
|
||||
// lib.optionalAttrs (diskoLib.vmToolsSupportsCustomQemu lib) {
|
||||
|
||||
Reference in new issue
Block a user