[wireshark] Add module
This commit is contained in:
parent
0b2685f9c0
commit
23a19015af
3 changed files with 25 additions and 0 deletions
|
|
@ -5,5 +5,6 @@
|
|||
./sops
|
||||
./spotify-adblock
|
||||
./ssh
|
||||
./wireshark
|
||||
];
|
||||
}
|
||||
|
|
|
|||
23
nixos/modules/programs/wireshark/default.nix
Normal file
23
nixos/modules/programs/wireshark/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.programs.wireshark;
|
||||
in {
|
||||
options.sisyphus.programs.wireshark.enable = lib.mkEnableOption "Wireshark";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
wireshark
|
||||
];
|
||||
|
||||
programs.wireshark = {
|
||||
enable = true;
|
||||
dumpcap.enable = true;
|
||||
usbmon.enable = false;
|
||||
};
|
||||
|
||||
sisyphus.users.wantedGroups = [
|
||||
"wireshark"
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue