nixos/modules/desktop/security/wireshark/default.nix
2024-09-02 13:50:44 +04:00

25 lines
393 B
Nix

{
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.desktop.security.wireshark;
in {
options.modules.desktop.security.wireshark = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
users.users.sako.extraGroups = [ "wireshark" ];
programs.wireshark = {
enable = true;
package = pkgs.wireshark;
};
};
}