summaryrefslogtreecommitdiff
path: root/modules/software/networking/default.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-11 00:52:32 -0700
committerFuwn <[email protected]>2024-09-11 00:52:32 -0700
commitb6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c (patch)
tree5e61c8151b6cde865405d61fb9c1f7bd65c9f662 /modules/software/networking/default.nix
parentBump: swift (diff)
downloadnixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.tar.xz
nixos-config-b6956dd32fbe4bd6a83336a66c3ff73ec47c7b9c.zip
Bump: i2p
Diffstat (limited to 'modules/software/networking/default.nix')
-rw-r--r--modules/software/networking/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/software/networking/default.nix b/modules/software/networking/default.nix
new file mode 100644
index 0000000..724693d
--- /dev/null
+++ b/modules/software/networking/default.nix
@@ -0,0 +1,41 @@
+{ secrets, ... }:
+{
+ imports = [
+ ./firewall
+ ./vpn
+ ./dhcpcd.nix
+ ./i2p.nix
+ ./ipv6.nix
+ ./loopback.nix
+ ./networkmanager.nix
+ ./optimise.nix
+ ./resolved.nix
+ ./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 = [
+ "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 = [
+ "0.nixos.pool.ntp.org"
+ "1.nixos.pool.ntp.org"
+ "2.nixos.pool.ntp.org"
+ "3.nixos.pool.ntp.org"
+ ];
+ };
+}