Refactor public ip handling

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-22 10:54:59 +01:00
parent 3bf23f860a
commit 248432b132
6 changed files with 31 additions and 10 deletions

View File

@@ -3,5 +3,6 @@
imports = [
./cpu/options.nix
./impermanence/options.nix
./networking/options.nix
];
}

View File

@@ -0,0 +1,17 @@
{ lib, ... }:
{
options.networking =
with lib;
with types;
{
publicIPv4 = mkOption {
type = nullOr str;
description = "The public IPv4 address of this device.";
};
publicIPv6 = mkOption {
type = nullOr str;
description = "The public IPv6 address of this device.";
};
};
}