1
0
Fork 0
forked from emily/nixfiles
nixfiles-emily/config/common/networking.nix

21 lines
578 B
Nix
Raw Normal View History

2024-06-12 15:00:55 +02:00
{ lib, ... }: with lib; {
2023-11-28 08:19:49 +01:00
networking = {
2024-01-18 16:03:31 +01:00
domain = mkDefault "kyouma.net";
2024-06-12 15:00:55 +02:00
dhcpcd.enable = false;
useDHCP = false;
2024-01-18 16:03:31 +01:00
nftables.enable = mkDefault true;
firewall.logRefusedConnections = mkDefault false;
2023-11-28 08:19:49 +01:00
};
2024-01-18 16:03:31 +01:00
2023-11-28 08:19:49 +01:00
systemd.network.enable = true;
services.resolved = {
enable = true;
dnssec = "true";
2024-02-22 20:20:07 +01:00
extraConfig = ''
DNS = [2a05:f480:1800:d2e::1]:853#resolve.solitary.social 80.240.30.163:853#resolve.solitary.social [2a01:4f8:1c0c:6c89::1]:853#resolve.nyantec.com 116.203.220.161:853#resolve.nyantec.com
DNSOverTLS = true
'';
2023-11-28 08:19:49 +01:00
};
}