wireshark: initial program
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
e78677ad34
commit
6898d99268
2 changed files with 18 additions and 0 deletions
|
@ -71,6 +71,7 @@ with lib;
|
||||||
tio.enable = true;
|
tio.enable = true;
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
waybar.enable = true;
|
waybar.enable = true;
|
||||||
|
wireshark.enable = true;
|
||||||
wofi.enable = true;
|
wofi.enable = true;
|
||||||
#// wpaperd.enable = true;
|
#// wpaperd.enable = true;
|
||||||
})
|
})
|
||||||
|
|
17
options/custom/programs/wireshark.nix
Normal file
17
options/custom/programs/wireshark.nix
Normal file
|
@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue