mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
The kernel needs swap support if swapDevices are enabled
This commit is contained in:
parent
d28876ea70
commit
d9c03b6447
|
@ -73,4 +73,10 @@ with pkgs.lib;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
config = mkIf ((length config.swapDevices) != 0) {
|
||||||
|
system.requiredKernelConfig = with config.lib.kernelConfig; [
|
||||||
|
(isYes "SWAP")
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue