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