move wireshark to mudule and correct permitions
nixos config pipeline / show-flake (push) Successful in 34s
nixos config pipeline / deploy (push) Successful in 26s

This commit is contained in:
smayzy
2025-08-14 12:09:44 +02:00
parent 91240b2a50
commit 6624ebeff3
6 changed files with 20 additions and 1 deletions
+1
View File
@@ -2,5 +2,6 @@
{
imports = [
./openssh.nix
./wireshark.nix
];
}
+16
View File
@@ -0,0 +1,16 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.wireshark.enable = mkOption {
type = types.bool;
default = false;
description = "wireshark";
};
config = mkIf config.smayzy.wireshark.enable {
programs.wireshark.enable = true;
environment.systemPackages = with pkgs; [ wireshark ];
};
}