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; |
Skyler Grey | 32e3105 | 2023-04-06 18:04:26 +0000 | [diff] [blame^] | 10 | local = "/local/"; |
| 11 | domain = "local"; |
| 12 | expand-hosts = true; |
Skyler Grey | 37094ca | 2023-02-26 12:55:55 +0000 | [diff] [blame] | 13 | }; |
Skyler Grey | 6808c21 | 2023-04-06 09:45:29 +0000 | [diff] [blame] | 14 | }; |
| 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 Grey | 73d247f | 2023-02-26 12:43:52 +0000 | [diff] [blame] | 25 | }; |
Skyler Grey | d4397f1 | 2022-10-31 00:27:35 +0000 | [diff] [blame] | 26 | }; |
| 27 | |
| 28 | sops.secrets."dnsmasq-private.conf" = { |
| 29 | format = "binary"; |
| 30 | sopsFile = ../secrets/dnsmasq-private.conf; |
| 31 | }; |
| 32 | }; |
| 33 | } |