mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
35 lines
736 B
Nix
35 lines
736 B
Nix
{ config, lib, tf, pkgs, ... }:
|
|
|
|
{
|
|
network.dns.enable = false;
|
|
|
|
kw.secrets.variables = {
|
|
katdns-key-config = {
|
|
path = "secrets/katdns";
|
|
field = "notes";
|
|
};
|
|
};
|
|
|
|
network.firewall.public = {
|
|
tcp.ports = [ 53 ];
|
|
udp.ports = [ 53 ];
|
|
};
|
|
|
|
/* environment.etc."katdns/zones/dork.dev.zone".text = let
|
|
dns = pkgs.dns;
|
|
in dns.lib.toString "dork.dev" (import ./dork.dev.nix { inherit dns lib; }); */
|
|
|
|
secrets.files.katdns-keyfile = {
|
|
text = "${tf.variables.katdns-key-config.ref}";
|
|
owner = "knot";
|
|
group = "knot";
|
|
};
|
|
|
|
services.knot = {
|
|
enable = true;
|
|
extraConfig = builtins.readFile ./knot.yaml;
|
|
keyFiles = [
|
|
config.secrets.files.katdns-keyfile.path
|
|
];
|
|
};
|
|
}
|