You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

blcr.nix 546B

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