format
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
{lib, config, pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.custom.wireshark;
|
||||
cfg = config.custom.wireshark;
|
||||
in
|
||||
{
|
||||
options.custom.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" ];
|
||||
};
|
||||
options.custom.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" ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user