nixos/modules/desktop/security/wireshark/default.nix

26 lines
393 B
Nix
Raw Normal View History

2024-09-02 13:25:44 +04:00
{
2024-09-02 13:30:11 +04:00
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.desktop.security.wireshark;
in {
options.modules.desktop.security.wireshark = {
2024-09-02 13:25:44 +04:00
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
2024-09-02 13:50:44 +04:00
users.users.sako.extraGroups = [ "wireshark" ];
2024-09-02 13:47:18 +04:00
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
2024-09-02 13:25:44 +04:00
};
}