blob: b00a02c3a0f1616a0f907f52b259d7e3773372ea [file] [log] [blame]
Skyler Greyd4397f12022-10-31 00:27:35 +00001{ config, ... }: {
2 config = {
Skyler Grey73d247f2023-02-26 12:43:52 +00003 services = {
4 nscd.enableNsncd = true;
5 dnsmasq = {
6 enable = true;
7 servers = [ "1.1.1.1" "1.0.0.1" ];
Skyler Greyd4397f12022-10-31 00:27:35 +00008
Skyler Grey73d247f2023-02-26 12:43:52 +00009 extraConfig = ''
10 conf-file=${config.sops.secrets."dnsmasq-private.conf".path}
11 '';
12 };
Skyler Greyd4397f12022-10-31 00:27:35 +000013 };
14
15 sops.secrets."dnsmasq-private.conf" = {
16 format = "binary";
17 sopsFile = ../secrets/dnsmasq-private.conf;
18 };
19 };
20}