Skip to content

Commit

Permalink
nixos/sysdig: init module
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 29, 2017
1 parent 824f2e2 commit 5572062
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Expand Up @@ -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
Expand Down
14 changes: 14 additions & 0 deletions 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 ];
};
}

0 comments on commit 5572062

Please sign in to comment.