1 { config, lib, pkgs, ... }:
3 let cfg = config.programs.criu;
8 enable = lib.mkOption {
12 Install {command}`criu` along with necessary kernel options.
17 config = lib.mkIf cfg.enable {
18 system.requiredKernelConfig = with config.lib.kernelConfig; [
19 (isYes "CHECKPOINT_RESTORE")
21 boot.kernel.features.criu = true;
22 environment.systemPackages = [ pkgs.criu ];