From 89b1270199a8bc320ceda77ab6ad292097605be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Nov 2024 16:34:47 +0100 Subject: [PATCH] nixos/{arp-scan,iftop,tcpdump,traceroute}: format (cherry picked from commit b4d622fd7acd3842ad6dc9b0580cc8299c98bf8c) --- nixos/modules/programs/arp-scan.nix | 10 ++++++++-- nixos/modules/programs/iftop.nix | 10 ++++++++-- nixos/modules/programs/tcpdump.nix | 10 ++++++++-- nixos/modules/programs/traceroute.nix | 10 ++++++++-- 4 files changed, 32 insertions(+), 8 deletions(-) diff --git a/nixos/modules/programs/arp-scan.nix b/nixos/modules/programs/arp-scan.nix index 09775670b973..3580148f637a 100644 --- a/nixos/modules/programs/arp-scan.nix +++ b/nixos/modules/programs/arp-scan.nix @@ -1,8 +1,14 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.programs.arp-scan; -in { +in +{ options = { programs.arp-scan = { enable = lib.mkOption { diff --git a/nixos/modules/programs/iftop.nix b/nixos/modules/programs/iftop.nix index 8118fb232c6e..dee64502e7f7 100644 --- a/nixos/modules/programs/iftop.nix +++ b/nixos/modules/programs/iftop.nix @@ -1,8 +1,14 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: let cfg = config.programs.iftop; -in { +in +{ options = { programs.iftop.enable = lib.mkEnableOption "iftop and setcap wrapper for it"; }; diff --git a/nixos/modules/programs/tcpdump.nix b/nixos/modules/programs/tcpdump.nix index 428ac9e741d6..396a9ce9c9d6 100644 --- a/nixos/modules/programs/tcpdump.nix +++ b/nixos/modules/programs/tcpdump.nix @@ -1,8 +1,14 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.programs.tcpdump; -in { +in +{ options = { programs.tcpdump = { enable = lib.mkOption { diff --git a/nixos/modules/programs/traceroute.nix b/nixos/modules/programs/traceroute.nix index 7a010058eba9..0b2a78aff6db 100644 --- a/nixos/modules/programs/traceroute.nix +++ b/nixos/modules/programs/traceroute.nix @@ -1,8 +1,14 @@ -{ config, lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: let cfg = config.programs.traceroute; -in { +in +{ options = { programs.traceroute = { enable = lib.mkOption {