2024-11-16 23:08:16 +05:30
|
|
|
{ lib, ... }: {
|
|
|
|
options.nodeconfig = {
|
|
|
|
facts = {
|
|
|
|
wireguard-ip = lib.mkOption {
|
2024-11-17 10:28:43 +05:30
|
|
|
type = lib.types.nullOr lib.types.str;
|
2024-11-16 23:08:16 +05:30
|
|
|
default = null;
|
|
|
|
example = "10.0.0.1";
|
|
|
|
description = "Wireguard IP of the node";
|
|
|
|
};
|
2024-11-17 10:28:43 +05:30
|
|
|
local-ip = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
example = "192.168.1.1";
|
|
|
|
description = "Local IP of the node";
|
|
|
|
};
|
|
|
|
external-ip = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
example = "11.1.1.2";
|
|
|
|
description = "Public facing IP of the node";
|
|
|
|
};
|
2024-11-16 23:08:16 +05:30
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|