From 20e2ff1fe749d58270fa83a737a36e8ce61a2fce Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 10 May 2023 04:52:12 +0000 Subject: [PATCH] programs: ship wireshark --- hosts/common/ids.nix | 1 + hosts/common/programs/default.nix | 2 ++ hosts/common/programs/wireshark.nix | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 hosts/common/programs/wireshark.nix diff --git a/hosts/common/ids.nix b/hosts/common/ids.nix index b79446f3..edf108ec 100644 --- a/hosts/common/ids.nix +++ b/hosts/common/ids.nix @@ -51,6 +51,7 @@ sane.ids.nscd.gid = 2004; sane.ids.systemd-oom.uid = 2005; sane.ids.systemd-oom.gid = 2005; + sane.ids.wireshark.gid = 2006; # found on graphical hosts sane.ids.nm-iodine.uid = 2101; # desko/moby/lappy diff --git a/hosts/common/programs/default.nix b/hosts/common/programs/default.nix index e60a3a0c..faa86df8 100644 --- a/hosts/common/programs/default.nix +++ b/hosts/common/programs/default.nix @@ -61,6 +61,7 @@ let tree usbutils wget + wireshark ; }; sysadminExtraPkgs = { @@ -272,6 +273,7 @@ in ./sublime-music.nix ./vlc.nix ./web-browser.nix + ./wireshark.nix ./zeal.nix ./zsh ]; diff --git a/hosts/common/programs/wireshark.nix b/hosts/common/programs/wireshark.nix new file mode 100644 index 00000000..ebb7de3b --- /dev/null +++ b/hosts/common/programs/wireshark.nix @@ -0,0 +1,5 @@ +{ config, ... }: +{ + sane.programs.wireshark = {}; + programs.wireshark.enable = config.sane.programs.wireshark.enabled; +}