summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2018-02-09 23:10:56 +0100
committerHerwig Hochleitner <hhochleitner@gmail.com>2018-02-15 09:10:32 +0100
commit66080ae4d8b0ae5830f2671d5e33cec7649a64ac (patch)
tree147ed9c59162f5502a21069c2981744f49d391fc /pkgs/os-specific/linux/kernel
parent0b621321cd8ca2e36790ddff686eb6e8da41ec70 (diff)
downloadnixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar.gz
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar.bz2
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar.lz
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar.xz
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.tar.zst
nixlib-66080ae4d8b0ae5830f2671d5e33cec7649a64ac.zip
programs.criu: add nixos option for installing criu + kernel flags
Diffstat (limited to 'pkgs/os-specific/linux/kernel')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 8fb40475bd7b..fb846f32a5c5 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -682,5 +682,22 @@ with stdenv.lib;
     WW_MUTEX_SELFTEST? n
   ''}
 
+  ${optionalString (features.criu or false)  ''
+    EXPERT y
+    CHECKPOINT_RESTORE y
+  ''}
+
+  ${optionalString ((features.criu or false) && (features.criu_revert_expert or true))
+    # Revert some changes, introduced by EXPERT, when necessary for criu
+  ''
+    RFKILL_INPUT? y
+    HID_PICOLCD_FB? y
+    HID_PICOLCD_BACKLIGHT? y
+    HID_PICOLCD_LCD? y
+    HID_PICOLCD_LEDS? y
+    HID_PICOLCD_CIR? y
+    DEBUG_MEMORY_INIT? y
+  ''}
+
   ${extraConfig}
 ''