Refactor public ip handling
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
imports = [
|
||||
./cpu/options.nix
|
||||
./impermanence/options.nix
|
||||
./networking/options.nix
|
||||
];
|
||||
}
|
||||
|
17
hosts/common/configs/system/networking/options.nix
Normal file
17
hosts/common/configs/system/networking/options.nix
Normal 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.";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user