From d9c03b64479cc04d3f78b3c43b6ddecd52c17add Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 7 Aug 2012 17:34:10 -0400 Subject: [PATCH] The kernel needs swap support if swapDevices are enabled --- modules/config/swap.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/config/swap.nix b/modules/config/swap.nix index 163de568d0f7..5b20f657e129 100644 --- a/modules/config/swap.nix +++ b/modules/config/swap.nix @@ -73,4 +73,10 @@ with pkgs.lib; }; + config = mkIf ((length config.swapDevices) != 0) { + system.requiredKernelConfig = with config.lib.kernelConfig; [ + (isYes "SWAP") + ]; + }; + }