Flake parts with x64 and ARM support for devshell on both Linux and Mac

This commit is contained in:
2023-07-01 18:30:30 -05:00
parent baf8223799
commit cfe907101d
20 changed files with 137 additions and 96 deletions

50
nix/system/dns.nix Normal file
View File

@ -0,0 +1,50 @@
{ config, ... }: {
services = {
coredns.enable = true;
# https://coredns.io/manual/configuration/
# https://github.com/coredns/coredns.io/blob/master/content/manual/configuration.md
coredns.config = ''
matri.cx {
template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130"
}
}
mail.matri.cx {
template IN A {
answer "{{ .Name }} 0 IN A 149.28.112.101"
}
}
*.matri.cx {
template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130"
}
}
eversole.co {
template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130"
}
}
box.eversole.co {
template IN A {
answer "{{ .Name }} 0 IN A 149.28.112.101"
}
}
*.eversole.co {
template IN A {
answer "{{ .Name }} 0 IN A 192.168.0.130"
}
}
. {
forward . 9.9.9.9 149.112.112.112 84.200.69.80 84.200.70.40
cache
}
'';
};
}