mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 18:59:07 +01:00
nameservers/public: Add option publicHostName for use in the ns records
This commit is contained in:
parent
3206c83d4b
commit
6a8f20960b
1 changed files with 5 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ let
|
|||
|> lib.attrValues
|
||||
|> lib.filter (host: host.config.custom.services.public-nameserver.enable)
|
||||
|> lib.map (host: {
|
||||
name = host.config.custom.networking.hostName;
|
||||
name = host.config.custom.services.public-nameserver.publicHostName;
|
||||
inherit (host.config.custom.networking.underlay) address;
|
||||
});
|
||||
in
|
||||
|
|
@ -66,6 +66,10 @@ in
|
|||
{
|
||||
options.custom.services.public-nameserver = {
|
||||
enable = lib.mkEnableOption "";
|
||||
publicHostName = lib.mkOption {
|
||||
type = lib.types.nonEmptyStr;
|
||||
default = netCfg.hostName;
|
||||
};
|
||||
port = lib.mkOption {
|
||||
type = lib.types.port;
|
||||
default = 53;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue