diff options
| author | tv <tv@krebsco.de> | 2026-11-28 03:17:26 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-28 04:34:07 +0100 |
| commit | b16983b8fa9cea6f066dd2480947edd5cb936e17 (patch) | |
| tree | a9f069c824b3394e03ec5bd7f992d70605070895 | |
| parent | 0ecb4d12f2de0b6cc5519ed01bff11e4076dc79a (diff) | |
zu: use networkd, with DHCP on eth0 and wlan0
| -rw-r--r-- | systems/zu/config.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/systems/zu/config.nix b/systems/zu/config.nix index 8a4371b2..bdb1e792 100644 --- a/systems/zu/config.nix +++ b/systems/zu/config.nix @@ -8,6 +8,7 @@ ../../configs/gitrepos.nix ../../configs/mail-client.nix ../../configs/man.nix + ../../configs/networkd.nix ../../configs/nginx/public_html.nix ../../configs/pulse.nix ../../configs/retiolum.nix @@ -43,7 +44,11 @@ }; }; - networking.wireless.enable = true; + hrm.network.interfaces.eth0.medium = "ethernet"; + + networking.interfaces.eth0.useDHCP = true; + networking.interfaces.wlan0.useDHCP = true; + networking.usePredictableInterfaceNames = false; nix.daemonCPUSchedPolicy = "batch"; nix.daemonIOSchedPriority = 1; @@ -63,4 +68,9 @@ # The NixOS release to be compatible with for stateful data such as databases. system.stateVersion = "15.09"; + + systemd.network.links."10-ethernet" = { + matchConfig.Name = "eth0"; + linkConfig.WakeOnLan = "magic"; + }; } |
