mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 18:37:04 +03:00
15 lines
298 B
Nix
15 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 ];
|
|
};
|
|
}
|