[wireshark] Add module
This commit is contained in:
parent
0b2685f9c0
commit
23a19015af
3 changed files with 25 additions and 0 deletions
|
|
@ -38,6 +38,7 @@
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
sops.enable = true;
|
sops.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
wireshark.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
|
|
||||||
|
|
@ -5,5 +5,6 @@
|
||||||
./sops
|
./sops
|
||||||
./spotify-adblock
|
./spotify-adblock
|
||||||
./ssh
|
./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