nixos/{arp-scan,iftop,tcpdump,traceroute}: format

(cherry picked from commit b4d622fd7a)
This commit is contained in:
Sandro Jäckel 2024-11-18 16:34:47 +01:00 committed by github-actions[bot]
parent 670f76a1e6
commit 89b1270199
4 changed files with 32 additions and 8 deletions

View File

@ -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 {

View File

@ -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";
};

View File

@ -1,8 +1,14 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.tcpdump;
in {
in
{
options = {
programs.tcpdump = {
enable = lib.mkOption {

View File

@ -1,8 +1,14 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.traceroute;
in {
in
{
options = {
programs.traceroute = {
enable = lib.mkOption {