Avoid dns caching at the nscd level as we already use dnsmasq
diff --git a/modules/dnsmasq.nix b/modules/dnsmasq.nix
index 6f9d768..b00a02c 100644
--- a/modules/dnsmasq.nix
+++ b/modules/dnsmasq.nix
@@ -1,12 +1,15 @@
{ config, ... }: {
config = {
- services.dnsmasq = {
- enable = true;
- servers = [ "1.1.1.1" "1.0.0.1" ];
+ services = {
+ nscd.enableNsncd = true;
+ dnsmasq = {
+ enable = true;
+ servers = [ "1.1.1.1" "1.0.0.1" ];
- extraConfig = ''
- conf-file=${config.sops.secrets."dnsmasq-private.conf".path}
- '';
+ extraConfig = ''
+ conf-file=${config.sops.secrets."dnsmasq-private.conf".path}
+ '';
+ };
};
sops.secrets."dnsmasq-private.conf" = {