2024-04-22 17:42:51 +02:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
services.coredns = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.coredns.override {
|
|
|
|
externalPlugins = [
|
|
|
|
{
|
|
|
|
name = "tailscale";
|
|
|
|
repo = "github.com/damomurf/coredns-tailscale";
|
2024-04-23 16:32:01 +02:00
|
|
|
version = "750df081a3cc63f325ecfde6c30a974dc0e4bf56";
|
2024-04-22 17:42:51 +02:00
|
|
|
}
|
|
|
|
];
|
2024-04-23 16:32:01 +02:00
|
|
|
vendorHash = "sha256-tuHr5oYmx3HNmsO6ZOO14vORArk8YHZBsodCiydf6k8=";
|
2024-04-22 17:42:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = ''
|
|
|
|
datarift.nl:5454 {
|
|
|
|
tailscale datarift.nl {
|
|
|
|
authkey {$TS_AUTHKEY}
|
|
|
|
}
|
|
|
|
log
|
|
|
|
errors
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
systemd.services.coredns.serviceConfig.EnvironmentFile = [ config.sops.secrets.coredns-env.path ];
|
|
|
|
}
|