summaryrefslogtreecommitdiff
path: root/hosts/toaster/network.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2023-08-05 20:48:58 +0200
committerGrigory Shipunov2023-08-05 20:51:15 +0200
commit9e5d5bd874850df8090c6b43a09bd6fab74e537c (patch)
tree718ea139ed960358204472ec7e7151c73a37035e /hosts/toaster/network.nix
parent8b8d90cec49f9af706d0a1fc090c89441943b088 (diff)
retire toaster and remove dead code
Diffstat (limited to 'hosts/toaster/network.nix')
-rw-r--r--hosts/toaster/network.nix57
1 files changed, 0 insertions, 57 deletions
diff --git a/hosts/toaster/network.nix b/hosts/toaster/network.nix
deleted file mode 100644
index 26def6b..0000000
--- a/hosts/toaster/network.nix
+++ /dev/null
@@ -1,57 +0,0 @@
-{ config, pkgs, ... }: {
- environment.systemPackages = with pkgs; [ iwgtk ];
-
- networking = {
- hostName = "toaster";
- firewall.enable = true;
- networkmanager.enable = false;
- useNetworkd = true;
- wireguard.enable = true;
- wireless.iwd.enable = true;
- };
-
- services.resolved = {
- enable = true;
- dnssec = "allow-downgrade";
- fallbackDns = [
- "9.9.9.9"
- "2620:fe::fe"
- "149.112.112.112"
- "2620:fe::9"
- ];
- };
-
- # workaround for networkd waiting for shit
- systemd.services.systemd-networkd-wait-online.serviceConfig.ExecStart = [
- "" # clear old command
- "${config.systemd.package}/lib/systemd/systemd-networkd-wait-online --any"
- ];
-
- systemd.network = {
- enable = true;
-
- networks."10-ether" = {
- matchConfig.MACAddress = "e8:80:88:2f:c6:70";
- networkConfig = {
- DHCP = "yes";
- IPv6AcceptRA = true;
- };
- };
- networks."10-dock" = {
- matchConfig.Name = "enp5s0f4u1u1";
- networkConfig = {
- DHCP = "yes";
- IPv6AcceptRA = true;
- };
- dhcpV4Config = { RouteMetric = 666; };
- };
- networks."10-wlan" = {
- # matchConfig.MACAddress = "04:7b:cb:2a:aa:8c";
- matchConfig.Name = "wlan0";
- networkConfig = {
- DHCP = "yes";
- IPv6AcceptRA = true;
- };
- };
- };
-}