2017-09-29 14:58:03 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.sysdig;
|
|
|
|
in {
|
2022-08-28 20:18:44 +01:00
|
|
|
options.programs.sysdig.enable = mkEnableOption (lib.mdDoc "sysdig");
|
2017-09-29 14:58:03 +01:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.sysdig ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.sysdig ];
|
|
|
|
};
|
|
|
|
}
|