mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
14 lines
298 B
Nix
14 lines
298 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.sysdig;
|
|
in {
|
|
options.programs.sysdig.enable = mkEnableOption "sysdig";
|
|
|
|
config = mkIf cfg.enable {
|
|
environment.systemPackages = [ pkgs.sysdig ];
|
|
boot.extraModulePackages = [ config.boot.kernelPackages.sysdig ];
|
|
};
|
|
}
|