mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Compare commits
2 commits
7d1c51a1a3
...
6b801a8ec0
Author | SHA1 | Date | |
---|---|---|---|
ItsDrike | 6b801a8ec0 | ||
ItsDrike | 60d813663d |
|
@ -31,6 +31,7 @@
|
||||||
neocmakelsp
|
neocmakelsp
|
||||||
bash-language-server
|
bash-language-server
|
||||||
nixd
|
nixd
|
||||||
|
emmet-ls
|
||||||
|
|
||||||
# Linters / formatters
|
# Linters / formatters
|
||||||
stylua
|
stylua
|
||||||
|
|
|
@ -226,6 +226,7 @@
|
||||||
};
|
};
|
||||||
qalculate-gtk.enable = true;
|
qalculate-gtk.enable = true;
|
||||||
virtualbox.enable = true;
|
virtualbox.enable = true;
|
||||||
|
wireshark.enable = true;
|
||||||
};
|
};
|
||||||
file-managers = {
|
file-managers = {
|
||||||
pcmanfm-qt.enable = true;
|
pcmanfm-qt.enable = true;
|
||||||
|
|
|
@ -48,6 +48,7 @@ in {
|
||||||
mpv.enable = mkEnableOption "MPV (General-purpose media player)";
|
mpv.enable = mkEnableOption "MPV (General-purpose media player)";
|
||||||
qalculate-gtk.enable = mkEnableOption "qalculate-gtk (The ultimate desktop calculator)";
|
qalculate-gtk.enable = mkEnableOption "qalculate-gtk (The ultimate desktop calculator)";
|
||||||
virtualbox.enable = mkEnableOption "VirtualBox";
|
virtualbox.enable = mkEnableOption "VirtualBox";
|
||||||
|
wireshark.enable = mkEnableOption "WireShark (Network protocol analyzer)";
|
||||||
};
|
};
|
||||||
|
|
||||||
file-managers = {
|
file-managers = {
|
||||||
|
|
|
@ -5,5 +5,6 @@
|
||||||
./thunar.nix
|
./thunar.nix
|
||||||
./virtualbox.nix
|
./virtualbox.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
|
./wireshark.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
21
system/roles/workstation/programs/wireshark.nix
Normal file
21
system/roles/workstation/programs/wireshark.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) mkIf;
|
||||||
|
cfgUser = config.myOptions.system.username;
|
||||||
|
cfg = config.myOptions.home-manager.programs.applications.wireshark;
|
||||||
|
deviceType = config.myOptions.device.roles.type;
|
||||||
|
acceptedTypes = ["laptop" "desktop"];
|
||||||
|
in {
|
||||||
|
config = mkIf ((builtins.elem deviceType acceptedTypes) && cfg.enable) {
|
||||||
|
programs.wireshark = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.wireshark;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.extraGroups.wireshark.members = ["${cfgUser}"];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue