Compare commits

...

2 commits

Author SHA1 Message Date
ItsDrike 6b801a8ec0
Add emmet-ls LSP as nvim dep 2024-09-12 22:14:56 +02:00
ItsDrike 60d813663d
Add wireshark 2024-09-12 22:14:42 +02:00
5 changed files with 25 additions and 0 deletions

View file

@ -31,6 +31,7 @@
neocmakelsp
bash-language-server
nixd
emmet-ls
# Linters / formatters
stylua

View file

@ -226,6 +226,7 @@
};
qalculate-gtk.enable = true;
virtualbox.enable = true;
wireshark.enable = true;
};
file-managers = {
pcmanfm-qt.enable = true;

View file

@ -48,6 +48,7 @@ in {
mpv.enable = mkEnableOption "MPV (General-purpose media player)";
qalculate-gtk.enable = mkEnableOption "qalculate-gtk (The ultimate desktop calculator)";
virtualbox.enable = mkEnableOption "VirtualBox";
wireshark.enable = mkEnableOption "WireShark (Network protocol analyzer)";
};
file-managers = {

View file

@ -5,5 +5,6 @@
./thunar.nix
./virtualbox.nix
./steam.nix
./wireshark.nix
];
}

View 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}"];
};
}