From 5f8001dc86efde3ce99583cf7694cbc6d11bec27 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 2 Dec 2024 12:07:39 +0100 Subject: [PATCH] common: fix global wireshark permissions --- home/packages.nix | 1 - hosts/common/default.nix | 1 + hosts/common/programs/wireshark.nix | 10 ++++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 hosts/common/programs/wireshark.nix diff --git a/home/packages.nix b/home/packages.nix index 704559c..90c7510 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -120,7 +120,6 @@ tenacity # transcribe - wireshark xcalib xclip xdotool diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 3135535..a3e4515 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -11,6 +11,7 @@ in { ./programs/nix-ld.nix ./programs/ssh.nix ./programs/usbtop.nix + ./programs/wireshark.nix ./services/dbus.nix ./services/journald.nix diff --git a/hosts/common/programs/wireshark.nix b/hosts/common/programs/wireshark.nix new file mode 100644 index 0000000..d5ced45 --- /dev/null +++ b/hosts/common/programs/wireshark.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: +let + inherit (config) machineVars; +in +{ + programs.wireshark = { + enable = !config.machineVars.headless; + package = pkgs.wireshark; + }; +}