diff options
author | Acid Bong <acidbong@tilde.club> | 2024-04-17 14:37:58 +0300 |
---|---|---|
committer | Acid Bong <acidbong@tilde.club> | 2024-05-12 10:11:06 +0300 |
commit | 49f6869f71fb2724674ccc18670bbde70843d43f (patch) | |
tree | 8883200364905f93d71e5d4065239bfcf9fda9af /nixos/modules/programs/wireshark.nix | |
parent | 861f29655c591aadd16396c0ac67316861d954cc (diff) |
treewide: remove file-wide `with lib;` in nixos/modules/programs
Diffstat (limited to 'nixos/modules/programs/wireshark.nix')
-rw-r--r-- | nixos/modules/programs/wireshark.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nixos/modules/programs/wireshark.nix b/nixos/modules/programs/wireshark.nix index 2d947154e8224..f5673e5940fea 100644 --- a/nixos/modules/programs/wireshark.nix +++ b/nixos/modules/programs/wireshark.nix @@ -1,28 +1,26 @@ { config, lib, pkgs, ... }: -with lib; - let cfg = config.programs.wireshark; wireshark = cfg.package; in { options = { programs.wireshark = { - enable = mkOption { - type = types.bool; + enable = lib.mkOption { + type = lib.types.bool; default = false; description = '' Whether to add Wireshark to the global environment and configure a setcap wrapper for 'dumpcap' for users in the 'wireshark' group. ''; }; - package = mkPackageOption pkgs "wireshark-cli" { + package = lib.mkPackageOption pkgs "wireshark-cli" { example = "wireshark"; }; }; }; - config = mkIf cfg.enable { + config = lib.mkIf cfg.enable { environment.systemPackages = [ wireshark ]; users.groups.wireshark = {}; |