mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Compare commits
No commits in common. "6b801a8ec061e48f2b49c91e43f646d3cf3d0e8b" and "7d1c51a1a3f65b28672469b44e2ec31a6814cad1" have entirely different histories.
6b801a8ec0
...
7d1c51a1a3
|
@ -31,7 +31,6 @@
|
|||
neocmakelsp
|
||||
bash-language-server
|
||||
nixd
|
||||
emmet-ls
|
||||
|
||||
# Linters / formatters
|
||||
stylua
|
||||
|
|
|
@ -226,7 +226,6 @@
|
|||
};
|
||||
qalculate-gtk.enable = true;
|
||||
virtualbox.enable = true;
|
||||
wireshark.enable = true;
|
||||
};
|
||||
file-managers = {
|
||||
pcmanfm-qt.enable = true;
|
||||
|
|
|
@ -48,7 +48,6 @@ 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 = {
|
||||
|
|
|
@ -5,6 +5,5 @@
|
|||
./thunar.nix
|
||||
./virtualbox.nix
|
||||
./steam.nix
|
||||
./wireshark.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
{
|
||||
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