beginnings of split dns
This commit is contained in:
parent
a1369e5818
commit
2289f0e6e4
10 changed files with 177 additions and 3 deletions
28
hosts/modules/split-dns.nix
Normal file
28
hosts/modules/split-dns.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.services.splitDNS = {
|
||||
entries = lib.mkOption {
|
||||
type = lib.types.listOf (
|
||||
lib.types.submodule {
|
||||
options = {
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The domain name to configure";
|
||||
};
|
||||
lanIP = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "IP address to return for LAN requests";
|
||||
};
|
||||
tailscaleIP = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "IP address to return for Tailscale requests";
|
||||
};
|
||||
};
|
||||
}
|
||||
);
|
||||
default = [ ];
|
||||
description = "List of domains to configure for split DNS";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue