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