machines: serv,zero: Switch to DHCP auto-configuration

It's just easier to configure everything on the router and let DHCP do
the rest.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-10-26 21:01:31 +02:00
parent 5ec9fa569d
commit dc9e47b523
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A
4 changed files with 2 additions and 15 deletions

View file

@ -1,12 +1,5 @@
{ lib, ... }:
{ {
networking = { networking.usePredictableInterfaceNames = true;
usePredictableInterfaceNames = lib.mkDefault true;
nameservers = lib.mkDefault [ "9.9.9.9" ];
domain = "c8h4.io";
search = [ "c8h4.io" ];
};
networking.firewall = { networking.firewall = {
allowPing = true; allowPing = true;

View file

@ -21,10 +21,6 @@ in {
system.stateVersion = "23.05"; system.stateVersion = "23.05";
networking = my.homelab.networking // {
interfaces.eth0 = my.machines.serv.eth0;
};
services.dashboard-icons = { services.dashboard-icons = {
enable = true; enable = true;
virtualHost = { virtualHost = {

View file

@ -42,9 +42,7 @@
fileSystems."/storage/bunker" = my.homelab.nfsServers.tank.bunker; fileSystems."/storage/bunker" = my.homelab.nfsServers.tank.bunker;
networking = my.homelab.networking // { networking.interfaces.eno1.wakeOnLan.enable = true;
interfaces.eno1 = my.machines.zero.eno1 // { wakeOnLan.enable = true; };
};
home-manager.users.christoph = { home-manager.users.christoph = {
imports = [ ../secrets/home-manager/tu-vienna.nix ]; imports = [ ../secrets/home-manager/tu-vienna.nix ];

Binary file not shown.