feat: try rework
This commit is contained in:
parent
1ddbd3b8b6
commit
ecf10628c3
51 changed files with 1941 additions and 445 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
net = import ../data/network.nix;
|
||||
net = import ../config/network.nix;
|
||||
dnsModel = import ../intermediate/dns.nix;
|
||||
in
|
||||
{
|
||||
services.unbound = {
|
||||
|
|
@ -16,9 +17,9 @@ in
|
|||
local-zone = "\"${net.local_domain}.\" static";
|
||||
local-data =
|
||||
(map (name:
|
||||
let ip = net.dnsMappings.${name}; in
|
||||
let ip = dnsModel.dnsMappings.${name}; in
|
||||
"\"${name}. IN A ${ip}\""
|
||||
) (builtins.attrNames net.dnsMappings));
|
||||
) (builtins.attrNames dnsModel.dnsMappings));
|
||||
};
|
||||
|
||||
forward-zone = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue