1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

The kernel needs swap support if swapDevices are enabled

This commit is contained in:
Shea Levy 2012-08-07 17:34:10 -04:00
parent d28876ea70
commit d9c03b6447

View file

@ -73,4 +73,10 @@ with pkgs.lib;
};
config = mkIf ((length config.swapDevices) != 0) {
system.requiredKernelConfig = with config.lib.kernelConfig; [
(isYes "SWAP")
];
};
}