blob: e4831d73d2d1afd9500fcb7f58a2f226536eebf5 [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;
Skyler Grey37094ca2023-02-26 12:55:55 +00007 settings = {
8 server = [ "1.1.1.1" "1.0.0.1" ];
9 conf-file = config.sops.secrets."dnsmasq-private.conf".path;
10 };
Skyler Grey6808c212023-04-06 09:45:29 +000011 extraConfig = ''
12 local=/local/
13 domain=local
14 expand-hosts
15 '';
16 };
17 avahi = {
18 enable = true;
19 nssmdns = true;
20 ipv4 = true;
21 ipv6 = false;
22 publish = {
23 enable = true;
24 addresses = true;
25 workstation = true;
26 };
Skyler Grey73d247f2023-02-26 12:43:52 +000027 };
Skyler Greyd4397f12022-10-31 00:27:35 +000028 };
29
30 sops.secrets."dnsmasq-private.conf" = {
31 format = "binary";
32 sopsFile = ../secrets/dnsmasq-private.conf;
33 };
34 };
35}