blob: c23dc1614d7ba65b6a5ee29c23603b638fa3483a [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;
Skyler Grey32e31052023-04-06 18:04:26 +000010 local = "/local/";
11 domain = "local";
12 expand-hosts = true;
Skyler Grey37094ca2023-02-26 12:55:55 +000013 };
Skyler Grey6808c212023-04-06 09:45:29 +000014 };
15 avahi = {
16 enable = true;
17 nssmdns = true;
18 ipv4 = true;
19 ipv6 = false;
20 publish = {
21 enable = true;
22 addresses = true;
23 workstation = true;
24 };
Skyler Grey73d247f2023-02-26 12:43:52 +000025 };
Skyler Greyd4397f12022-10-31 00:27:35 +000026 };
27
28 sops.secrets."dnsmasq-private.conf" = {
29 format = "binary";
30 sopsFile = ../secrets/dnsmasq-private.conf;
31 };
32 };
33}