Skyler Grey | d4397f1 | 2022-10-31 00:27:35 +0000 | [diff] [blame] | 1 | { config, ... }: { |
| 2 | config = { |
Skyler Grey | 73d247f | 2023-02-26 12:43:52 +0000 | [diff] [blame] | 3 | services = { |
| 4 | nscd.enableNsncd = true; |
| 5 | dnsmasq = { |
| 6 | enable = true; |
Skyler Grey | 37094ca | 2023-02-26 12:55:55 +0000 | [diff] [blame] | 7 | settings = { |
| 8 | server = [ "1.1.1.1" "1.0.0.1" ]; |
| 9 | conf-file = config.sops.secrets."dnsmasq-private.conf".path; |
| 10 | }; |
Skyler Grey | 6808c21 | 2023-04-06 09:45:29 +0000 | [diff] [blame] | 11 | 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 Grey | 73d247f | 2023-02-26 12:43:52 +0000 | [diff] [blame] | 27 | }; |
Skyler Grey | d4397f1 | 2022-10-31 00:27:35 +0000 | [diff] [blame] | 28 | }; |
| 29 | |
| 30 | sops.secrets."dnsmasq-private.conf" = { |
| 31 | format = "binary"; |
| 32 | sopsFile = ../secrets/dnsmasq-private.conf; |
| 33 | }; |
| 34 | }; |
| 35 | } |