mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Filesystems] Don't enable kvdo by default
Fails to build on kernel > 5.15
This commit is contained in:
parent
50b8c1e7ad
commit
a8061ea05d
1 changed files with 6 additions and 3 deletions
|
|
@ -59,13 +59,16 @@ in
|
|||
services.lvm = mkIf cfg.lvm {
|
||||
boot.thin.enable = true;
|
||||
dmeventd.enable = true;
|
||||
boot.vdo.enable = true;
|
||||
boot.vdo.enable = config.aviallon.boot.kvdo.enable;
|
||||
};
|
||||
boot.initrd.kernelModules = ifEnable cfg.lvm [
|
||||
"dm-cache" "dm-cache-smq" "dm-cache-mq" "dm-cache-cleaner"
|
||||
];
|
||||
boot.kernelModules = ifEnable cfg.lvm [ "dm-cache" "dm-cache-smq" "dm-persistent-data" "dm-bio-prison" "dm-clone" "dm-crypt" "dm-writecache" "dm-mirror" "dm-snapshot" "kvdo" ];
|
||||
|
||||
boot.kernelModules = []
|
||||
++ optionals cfg.lvm [ "dm-cache" "dm-cache-smq" "dm-persistent-data" "dm-bio-prison" "dm-clone" "dm-crypt" "dm-writecache" "dm-mirror" "dm-snapshot" ]
|
||||
++ optionals config.aviallon.boot.kvdo.enable [ "kvdo" ]
|
||||
;
|
||||
|
||||
aviallon.boot.cmdline = {
|
||||
resume = mkIf (! isNull resumeDeviceLabel) (mkDefault "LABEL=${resumeDeviceLabel}");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue