forked from the-distro/infra
22 lines
409 B
Nix
22 lines
409 B
Nix
|
# This is a data-only module for other modules consumption.
|
||
|
{ lib, ... }:
|
||
|
let
|
||
|
inherit (lib) mkOption types;
|
||
|
in
|
||
|
{
|
||
|
options.bagel.infra.self = {
|
||
|
wan = {
|
||
|
family = mkOption {
|
||
|
type = types.enum [ "inet" "inet6" ];
|
||
|
default = "inet6";
|
||
|
};
|
||
|
address = mkOption {
|
||
|
type = types.str;
|
||
|
};
|
||
|
prefixLength = mkOption {
|
||
|
type = types.int;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|