move wireshark to mudule and correct permitions
This commit is contained in:
parent
91240b2a50
commit
6624ebeff3
@ -20,6 +20,7 @@
|
|||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel"
|
"wheel"
|
||||||
"adbusers"
|
"adbusers"
|
||||||
|
"wireshark"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -50,6 +50,7 @@ in
|
|||||||
desmume.enable = true;
|
desmume.enable = true;
|
||||||
ghidra.enable = true;
|
ghidra.enable = true;
|
||||||
firejail.enable = true;
|
firejail.enable = true;
|
||||||
|
wireshark.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,6 +46,7 @@ in
|
|||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
chromium.enable = true;
|
chromium.enable = true;
|
||||||
firejail.enable = true;
|
firejail.enable = true;
|
||||||
|
wireshark.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,5 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./openssh.nix
|
./openssh.nix
|
||||||
|
./wireshark.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
16
modules/nix/networking/wireshark.nix
Normal file
16
modules/nix/networking/wireshark.nix
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.smayzy.wireshark.enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "wireshark";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = mkIf config.smayzy.wireshark.enable {
|
||||||
|
programs.wireshark.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [ wireshark ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -20,7 +20,6 @@ in
|
|||||||
baobab
|
baobab
|
||||||
loupe
|
loupe
|
||||||
gimp3
|
gimp3
|
||||||
wireshark
|
|
||||||
audacity
|
audacity
|
||||||
networkmanagerapplet
|
networkmanagerapplet
|
||||||
gparted
|
gparted
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user