moar options

This commit is contained in:
Kopatz
2024-04-16 21:20:04 +02:00
parent a61bf01275
commit 9d79d01c5e
16 changed files with 132 additions and 57 deletions

View File

@@ -0,0 +1,18 @@
{lib, config, pkgs, ... }:
with lib;
let
cfg = config.kop.wireshark;
in
{
options.kop.wireshark = {
enable = mkEnableOption "Enables wireshark";
};
config = mkIf cfg.enable {
programs.wireshark.enable = true;
programs.wireshark.package = pkgs.wireshark;
users.users.${config.mainUser.name}.extraGroups = [ "wireshark" ];
};
}