chore: pretty up with alejandra

This commit is contained in:
Peritia 2025-09-22 16:16:02 +02:00
parent 7bbda6140f
commit 37b85877bb
75 changed files with 584 additions and 452 deletions

View file

@ -9,13 +9,14 @@
# - enable → Enable Wireshark system module
# - username → User to add to the wireshark group (required)
#
{ config, lib, pkgs, ... }:
let
cfg = config.nyx-module.system.wireshark;
in
{
config,
lib,
pkgs,
...
}: let
cfg = config.nyx-module.system.wireshark;
in {
options.nyx-module.system.wireshark = {
enable = lib.mkEnableOption "Enable Wireshark (system module)";
@ -27,15 +28,15 @@ in
};
config = lib.mkIf cfg.enable {
environment.systemPackages = [ pkgs.wireshark ];
environment.systemPackages = [pkgs.wireshark];
programs.wireshark = {
enable = true; # Installs wireshark + sets dumpcap caps
enable = true; # Installs wireshark + sets dumpcap caps
package = pkgs.wireshark;
};
# Add user to wireshark group
users.users.${cfg.username}.extraGroups = [ "wireshark" ];
users.users.${cfg.username}.extraGroups = ["wireshark"];
assertions = [
{