mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
wireshark: Init module
This commit is contained in:
parent
68ab698f55
commit
bb00a01802
1 changed files with 15 additions and 0 deletions
15
modules/system/programs/wireshark.nix
Normal file
15
modules/system/programs/wireshark.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
options.custom.programs.wireshark.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
|
config = lib.mkIf config.custom.programs.wireshark.enable {
|
||||||
|
programs.wireshark.enable = true;
|
||||||
|
environment.systemPackages = [ pkgs.wireshark ];
|
||||||
|
users.users.seb.extraGroups = [ "wireshark" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue