20 lines
490 B
Nix
20 lines
490 B
Nix
{config, ...}: let
|
|
svc = "coredns.service";
|
|
usr = "${toString config.users.users.coredns.name}";
|
|
deps = ["dnscrypt-proxy2.service" "dhcpcd.service" "tailscaled.service"];
|
|
in {
|
|
imports = [../../../modules/coredns.nix];
|
|
|
|
sops.secrets = {
|
|
"coredns/ifaces".restartUnits = [svc];
|
|
"coredns/iptailscale".restartUnits = [svc];
|
|
"coredns/ifaces".owner = usr;
|
|
"coredns/iptailscale".owner = usr;
|
|
};
|
|
|
|
systemd.services.coredns = {
|
|
wants = deps;
|
|
after = deps;
|
|
};
|
|
}
|