From 55720626744d8123a48760c867f8c19205f1567b Mon Sep 17 00:00:00 2001 From: Joerg Thalheim Date: Fri, 29 Sep 2017 14:58:03 +0100 Subject: [PATCH] nixos/sysdig: init module --- nixos/modules/module-list.nix | 1 + nixos/modules/programs/sysdig.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nixos/modules/programs/sysdig.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index b3477fba8ae1..2b6bbcc097de 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -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 diff --git a/nixos/modules/programs/sysdig.nix b/nixos/modules/programs/sysdig.nix new file mode 100644 index 000000000000..fbbf29065564 --- /dev/null +++ b/nixos/modules/programs/sysdig.nix @@ -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 ]; + }; +}