diff options
| author | Fuwn <[email protected]> | 2024-09-06 21:38:16 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-06 21:38:16 -0700 |
| commit | 67acfc5da20f4b348e3826788243c997990a9a3c (patch) | |
| tree | 08a1cc47f648eb001d5f8362716337c5af58d92f /modules/system/networking/default.nix | |
| parent | Bump (diff) | |
| download | nixos-config-67acfc5da20f4b348e3826788243c997990a9a3c.tar.xz nixos-config-67acfc5da20f4b348e3826788243c997990a9a3c.zip | |
Bump
Diffstat (limited to 'modules/system/networking/default.nix')
| -rw-r--r-- | modules/system/networking/default.nix | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/modules/system/networking/default.nix b/modules/system/networking/default.nix index 6f25d7b..ddc8d10 100644 --- a/modules/system/networking/default.nix +++ b/modules/system/networking/default.nix @@ -1,3 +1,4 @@ +{ secrets, ... }: { imports = [ ./firewall @@ -11,15 +12,22 @@ ./tor.nix ]; + # https://discourse.nixos.org/t/rebuild-error-failed-to-start-network-manager-wait-online/41977/2 + systemd.network.wait-online.enable = false; + boot.initrd.systemd.network.wait-online.enable = false; + + # https://discourse.nixos.org/t/how-to-disable-networkmanager-wait-online-service-in-the-configuration-file/19963/2 + systemd.services.NetworkManager-wait-online.enable = false; + networking = { hostName = "kansai"; nftables.enable = true; nameservers = [ - "1.1.1.1#one.one.one.one" - "1.0.0.1#one.one.one.one" - "9.9.9.9#dns.quad9.net" - "149.112.112.112#dns.quad9.net" + "45.90.28.0#${secrets.nextdns_id}.dns.nextdns.io" + "2a07:a8c0::#${secrets.nextdns_id}.dns.nextdns.io" + "45.90.30.0#${secrets.nextdns_id}.dns.nextdns.io" + "2a07:a8c1::#${secrets.nextdns_id}.dns.nextdns.io" ]; timeServers = [ @@ -29,11 +37,4 @@ "3.nixos.pool.ntp.org" ]; }; - - # environment.etc."resolv.conf" = lib.mkForce { - # source = pkgs.writeText "resolv.conf" '' - # ${lib.concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)} - # options edns0 - # ''; - # }; } |