diff --git a/machines/valkyrie/coredns/default.nix b/machines/valkyrie/coredns/default.nix index d18d7df..bf36ff8 100644 --- a/machines/valkyrie/coredns/default.nix +++ b/machines/valkyrie/coredns/default.nix @@ -9,7 +9,7 @@ .:5454 { bind lo reload 5s - file ${./tailscale.zone} datarift.nl { + file /etc/coredns/tailscale.zone datarift.nl { reload 10s } forward . 127.0.0.1:5335 @@ -21,7 +21,7 @@ .:5455 { bind lo reload 5s - file ${./datarift.zone} datarift.nl { + file /etc/coredns/datarift.zone datarift.nl { reload 10s } forward . 127.0.0.1:5335 @@ -32,6 +32,17 @@ ''; }; + environment.etc = { + "coredns/datarift.zone" = { + source = ./datarift.zone; + mode = "0644"; + }; + "coredns/tailscale.zone" = { + source = ./tailscale.zone; + mode = "0644"; + }; + }; + systemd.services.coredns = { environment = { HOME = "%S/coredns";