4130737e8a
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
19 lines
343 B
Nix
19 lines
343 B
Nix
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
cfg = config.my.wireshark;
|
|
in {
|
|
options.my.wireshark = {
|
|
enable = lib.mkEnableOption null;
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.wireshark = {
|
|
enable = true;
|
|
package = lib.mkIf config.my.desktop.enable pkgs.wireshark;
|
|
};
|
|
|
|
my.user.extraGroups = [ "wireshark" ];
|
|
};
|
|
}
|