mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
15 lines
310 B
Nix
15 lines
310 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
|
||
|
let
|
||
|
cfg = config.programs.sysdig;
|
||
|
in {
|
||
|
options.programs.sysdig.enable = mkEnableOption (lib.mdDoc "sysdig");
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
environment.systemPackages = [ pkgs.sysdig ];
|
||
|
boot.extraModulePackages = [ config.boot.kernelPackages.sysdig ];
|
||
|
};
|
||
|
}
|