From 6898d9926826ea3843d025a75f0d35386e01be22 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 9 Sep 2024 17:23:50 -0500 Subject: [PATCH] wireshark: initial program Signed-off-by: Myned --- options/custom/programs/default.nix | 1 + options/custom/programs/wireshark.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 options/custom/programs/wireshark.nix diff --git a/options/custom/programs/default.nix b/options/custom/programs/default.nix index adfde8f..6f2e270 100644 --- a/options/custom/programs/default.nix +++ b/options/custom/programs/default.nix @@ -71,6 +71,7 @@ with lib; tio.enable = true; vscode.enable = true; waybar.enable = true; + wireshark.enable = true; wofi.enable = true; #// wpaperd.enable = true; }) diff --git a/options/custom/programs/wireshark.nix b/options/custom/programs/wireshark.nix new file mode 100644 index 0000000..dd92f18 --- /dev/null +++ b/options/custom/programs/wireshark.nix @@ -0,0 +1,17 @@ +{ config, lib, ... }: + +with lib; + +let + cfg = config.custom.programs.wireshark; +in +{ + options.custom.programs.wireshark.enable = mkOption { default = false; }; + + config = mkIf cfg.enable { + # https://gitlab.com/wireshark/wireshark + programs.wireshark.enable = true; + + users.users.${config.custom.username}.extraGroups = [ "wireshark" ]; + }; +}