mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot/Packages/Kernel] Add kvdo kernel module
This commit is contained in:
parent
6b5f69bece
commit
c25820247c
3 changed files with 59 additions and 0 deletions
4
boot.nix
4
boot.nix
|
|
@ -60,6 +60,7 @@ in
|
|||
x32abi = {
|
||||
enable = mkEnableOption "X32 kernel ABI";
|
||||
};
|
||||
kvdo.enable = mkEnableOption "dm-kvdo kernel module";
|
||||
efi = mkOption rec {
|
||||
description = "Use EFI bootloader";
|
||||
default = builtins.pathExists "/sys/firmware/efi";
|
||||
|
|
@ -114,6 +115,9 @@ in
|
|||
kernelPatches = concatLists [
|
||||
(optional cfg.x32abi.enable customKernelPatches.enableX32ABI)
|
||||
];
|
||||
extraModulePackages = concatLists [
|
||||
(optional cfg.kvdo.enable pkgs.kvdo)
|
||||
];
|
||||
|
||||
loader.grub.enable = cfg.useGrub || (!cfg.efi);
|
||||
loader.grub = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue