nixos/sysdig: init module

This commit is contained in:
Joerg Thalheim 2017-09-29 14:58:03 +01:00
parent 824f2e2a28
commit 5572062674
2 changed files with 15 additions and 0 deletions

View File

@ -102,6 +102,7 @@
./programs/spacefm.nix
./programs/ssh.nix
./programs/ssmtp.nix
./programs/sysdig.nix
./programs/thefuck.nix
./programs/tmux.nix
./programs/venus.nix

View File

@ -0,0 +1,14 @@
{ 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 ];
};
}