From c94112ba50e65e919b559ccec4db8b5d8a879b4a Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 2 Sep 2024 13:25:44 +0400 Subject: [PATCH] the west has fallen --- hosts/sakotop/configuration.nix | 3 +++ modules/desktop/default.nix | 2 ++ modules/desktop/security/default.nix | 6 ++++++ modules/desktop/security/wireshark/default.nix | 13 +++++++++++++ 4 files changed, 24 insertions(+) create mode 100644 modules/desktop/security/default.nix create mode 100644 modules/desktop/security/wireshark/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index b5feb39c..8a94003b 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -73,6 +73,9 @@ mpv.enable = true; jellyfin.enable = true; }; + security = { + wireshark.enable = true; + }; }; hardware = { nvidia = { diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index cc5ee68e..c6cb75fd 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -28,5 +28,7 @@ # vpn ./wireguard ./printing + # securitity + ./security ]; } diff --git a/modules/desktop/security/default.nix b/modules/desktop/security/default.nix new file mode 100644 index 00000000..c3920182 --- /dev/null +++ b/modules/desktop/security/default.nix @@ -0,0 +1,6 @@ +{}: +{ + imports = [ + ./wireshark + ]; +} diff --git a/modules/desktop/security/wireshark/default.nix b/modules/desktop/security/wireshark/default.nix new file mode 100644 index 00000000..7e2b9f08 --- /dev/null +++ b/modules/desktop/security/wireshark/default.nix @@ -0,0 +1,13 @@ +{ outputs, options, config, lib, pkgs, ...}: +let + cfg = config.modules.desktop.security.wireguard; +in +{ + options.modules.desktop.security.wireguard = { + enable = lib.mkEnableOption false; + }; + + config = lib.mkIf cfg.enable { + programs.wireshark.enable = true; + }; +}