nixdots/system/roles/workstation/programs/wireshark.nix

20 lines
366 B
Nix
Raw Permalink Normal View History

2024-09-12 18:22:05 +00:00
{
lib,
pkgs,
config,
...
}: let
inherit (lib) mkIf;
cfgUser = config.myOptions.system.username;
cfg = config.myOptions.home-manager.programs.applications.wireshark;
in {
config = mkIf cfg.enable {
2024-09-12 18:22:05 +00:00
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
users.extraGroups.wireshark.members = ["${cfgUser}"];
};
}