3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/programs/blcr.nix

28 lines
546 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
inherit (lib) mkOption mkIf;
cfg = config.environment.blcr;
2013-02-08 07:57:42 +00:00
blcrPkg = config.boot.kernelPackages.blcr;
in
{
###### interface
options = {
environment.blcr.enable = mkOption {
default = false;
description =
"Whether to enable support for the BLCR checkpointing tool.";
};
};
###### implementation
config = mkIf cfg.enable {
2013-02-08 07:57:42 +00:00
boot.kernelModules = [ "blcr" "blcr_imports" ];
boot.extraModulePackages = [ blcrPkg ];
environment.systemPackages = [ blcrPkg ];
};
}