summaryrefslogtreecommitdiffstats
path: root/nixos/modules/programs/criu.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/programs/criu.nix')
-rw-r--r--nixos/modules/programs/criu.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/nixos/modules/programs/criu.nix b/nixos/modules/programs/criu.nix
index 9414d0b27f0d..492a158923cb 100644
--- a/nixos/modules/programs/criu.nix
+++ b/nixos/modules/programs/criu.nix
@@ -1,14 +1,12 @@
{ config, lib, pkgs, ... }:
-with lib;
-
let cfg = config.programs.criu;
in {
options = {
programs.criu = {
- enable = mkOption {
- type = types.bool;
+ enable = lib.mkOption {
+ type = lib.types.bool;
default = false;
description = ''
Install {command}`criu` along with necessary kernel options.
@@ -16,7 +14,7 @@ in {
};
};
};
- config = mkIf cfg.enable {
+ config = lib.mkIf cfg.enable {
system.requiredKernelConfig = with config.lib.kernelConfig; [
(isYes "CHECKPOINT_RESTORE")
];