at 16.09-beta 546 B view raw
1{ config, lib, ... }: 2 3let 4 inherit (lib) mkOption mkIf; 5 cfg = config.environment.blcr; 6 blcrPkg = config.boot.kernelPackages.blcr; 7in 8 9{ 10 ###### interface 11 12 options = { 13 environment.blcr.enable = mkOption { 14 default = false; 15 description = 16 "Whether to enable support for the BLCR checkpointing tool."; 17 }; 18 }; 19 20 ###### implementation 21 22 config = mkIf cfg.enable { 23 boot.kernelModules = [ "blcr" "blcr_imports" ]; 24 boot.extraModulePackages = [ blcrPkg ]; 25 environment.systemPackages = [ blcrPkg ]; 26 }; 27}