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

This commit is contained in:
Sandro Jäckel 2024-11-18 16:34:47 +01:00
parent a6ee554a67
commit b4d622fd7a
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
4 changed files with 32 additions and 8 deletions

View File

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

View File

@ -1,8 +1,14 @@
{ config, pkgs, lib, ... }: {
config,
pkgs,
lib,
...
}:
let let
cfg = config.programs.iftop; cfg = config.programs.iftop;
in { in
{
options = { options = {
programs.iftop.enable = lib.mkEnableOption "iftop and setcap wrapper for it"; programs.iftop.enable = lib.mkEnableOption "iftop and setcap wrapper for it";
}; };

View File

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

View File

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