mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
40 lines
858 B
Nix
40 lines
858 B
Nix
{ config, superConfig, lib, tf, ... }:
|
|
|
|
/*
|
|
This module:
|
|
* Provides options for setting the domain/tld/... used by default in my service configs.
|
|
*/
|
|
|
|
with lib;
|
|
|
|
{
|
|
options.kw.dns = {
|
|
email = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = "";
|
|
};
|
|
tld = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = "";
|
|
};
|
|
domain = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = "";
|
|
};
|
|
ygg_prefix = mkOption {
|
|
type = types.nullOr types.str;
|
|
default = "";
|
|
};
|
|
isPublic = mkEnableOption "Provide DNS for the public primary IP addresses of the host";
|
|
ipv4 = mkOption {
|
|
type = types.str;
|
|
};
|
|
ipv6 = mkOption {
|
|
type = types.str;
|
|
};
|
|
dynamic = mkEnableOption "Enable Glauca Dynamic DNS Updater";
|
|
};
|
|
config = {
|
|
kw.dns = superConfig.kw.dns;
|
|
};
|
|
}
|