2024-06-05 07:09:28 +00:00
|
|
|
{ config, lib, nodes, ... }:
|
2024-06-01 13:19:39 +00:00
|
|
|
let
|
|
|
|
cfg = config.cherrykitten;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.cherrykitten = {
|
|
|
|
network = {
|
|
|
|
public_IPv4 = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
};
|
|
|
|
public_IPv6 = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
};
|
|
|
|
internal_IPv4 = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
};
|
|
|
|
internal_IPv6 = lib.mkOption {
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
default = null;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-06-05 07:09:28 +00:00
|
|
|
config = {
|
|
|
|
networking.hosts = {
|
|
|
|
"${nodes.ocelot.config.cherrykitten.network.internal_IPv4 }" = [ "ocelot" ];
|
|
|
|
"${nodes.serval.config.cherrykitten.network.internal_IPv4 }" = [ "serval" ];
|
|
|
|
};
|
|
|
|
};
|
2024-06-01 13:19:39 +00:00
|
|
|
}
|