Auto-detect network interface when not configured

If no interface is set in the config, the ARP scanner now picks the
first non-loopback, up, IPv4-enabled interface automatically. The
setting is optional in the TOML config, sample config, and Nix module.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rzuasti
2026-05-29 07:35:25 -04:00
co-authored by Claude Sonnet 4.6
parent 49adadf059
commit 08f2dc8340
6 changed files with 124 additions and 18 deletions
+3 -3
View File
@@ -22,9 +22,9 @@ in {
default = "/var/lib/oott.db";
};
networking.interface = mkOption {
type = types.str;
description = "Network interface to use for scans";
default = "eno1";
type = types.nullOr types.str;
description = "Network interface to use for scans. If not set, the first non-loopback connected interface is used automatically.";
default = null;
};
log.level = mkOption {
type = types.str;