2023-12-15 15:18:36 +00:00
|
|
|
{...}: {
|
2023-06-19 19:08:25 +00:00
|
|
|
networking = {
|
2023-11-29 14:35:23 +00:00
|
|
|
# the name of the machine
|
2024-01-12 16:02:47 +00:00
|
|
|
hostName = "cesium";
|
2023-11-29 14:35:23 +00:00
|
|
|
|
|
|
|
# the domain used for the machine
|
2023-06-19 19:08:25 +00:00
|
|
|
domain = "fainsin.bzh";
|
2023-11-29 14:35:23 +00:00
|
|
|
|
|
|
|
# domain name servers, use clouflare family
|
2023-12-15 15:18:36 +00:00
|
|
|
nameservers = ["1.1.1.2" "1.0.0.2"];
|
2024-01-07 19:11:48 +00:00
|
|
|
|
|
|
|
# firewall
|
2024-10-06 14:24:21 +00:00
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [
|
|
|
|
80 # http
|
|
|
|
443 # tls
|
|
|
|
];
|
|
|
|
};
|
2024-01-07 19:11:48 +00:00
|
|
|
|
|
|
|
# https://github.com/StevenBlack/hosts
|
|
|
|
stevenblack.enable = true;
|
2023-06-19 19:08:25 +00:00
|
|
|
};
|
|
|
|
}
|