From 1fcfd6288793e515acc948aa97551b07c89a3c30 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sun, 11 Nov 2018 13:23:57 +0100 Subject: [PATCH] wireshark no-root group setup --- nixos/configuration.nix | 9 +++++++++ nixos/packages.nix | 2 ++ 2 files changed, 11 insertions(+) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 30869c4..4068ab1 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -134,6 +134,15 @@ in { shell = pkgs.zsh; }; + # wireshark noroot gropu + users.groups.wireshark.gid = 500; + security.wrappers.dumpcap = { + source = "${pkgs.wireshark}/bin/dumpcap"; + permissions = "u+xs,g+x"; + owner = "root"; + group = "wireshark"; +}; + programs.zsh = { enable = true; autosuggestions.enable = true; diff --git a/nixos/packages.nix b/nixos/packages.nix index b900f1d..6591166 100644 --- a/nixos/packages.nix +++ b/nixos/packages.nix @@ -36,6 +36,8 @@ networkmanager-openconnect networkmanager-vpnc kdeApplications.akonadi-mime # for KOrganizer + + wireshark ]; }