[wireshark] Add module

This commit is contained in:
Tibo De Peuter 2025-12-04 10:30:43 +01:00
parent 0b2685f9c0
commit 23a19015af
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
3 changed files with 25 additions and 0 deletions

View file

@ -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 = {

View file

@ -5,5 +5,6 @@
./sops ./sops
./spotify-adblock ./spotify-adblock
./ssh ./ssh
./wireshark
]; ];
} }

View 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"
];
};
}