2020-04-24 23:36:52 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.sysdig;
|
|
|
|
in {
|
2024-04-21 15:54:59 +00:00
|
|
|
options.programs.sysdig.enable = mkEnableOption "sysdig, a tracing tool";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.sysdig ];
|
|
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.sysdig ];
|
|
|
|
};
|
|
|
|
}
|