From 9b7ff291434959dd247d2faa60ab5c6181cbe802 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 7 Aug 2024 22:03:11 +0200 Subject: [PATCH] refactor --- machines/orbi/hardware-configuration/default.nix | 4 ++-- machines/probe/hardware-configuration/hetzner.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/machines/orbi/hardware-configuration/default.nix b/machines/orbi/hardware-configuration/default.nix index 7460101..7a4641e 100644 --- a/machines/orbi/hardware-configuration/default.nix +++ b/machines/orbi/hardware-configuration/default.nix @@ -57,8 +57,8 @@ in clan.core.facts.services.zfs = factsGenerator.zfs { }; networking.hostId = config.clan.core.facts.services.zfs.public."zfs.hostId".value; - systemd.network.networks."10-hetzner".networkConfig.Address = ipv6.address; - boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner"; + systemd.network.networks."10-uplink".networkConfig.Address = ipv6.address; + boot.initrd.systemd.network.networks."10-uplink" = config.systemd.network.networks."10-uplink"; # todo: use ssh component boot.initrd.kernelModules = [ networkInterfaceModule ]; diff --git a/machines/probe/hardware-configuration/hetzner.nix b/machines/probe/hardware-configuration/hetzner.nix index 92616e8..a061375 100644 --- a/machines/probe/hardware-configuration/hetzner.nix +++ b/machines/probe/hardware-configuration/hetzner.nix @@ -3,14 +3,14 @@ # set up hetzner cloud network systemd.network.enable = true; - systemd.network.networks."10-hetzner" = { + systemd.network.networks."10-uplink" = { matchConfig.Name = "en*"; networkConfig.DHCP = "ipv4"; linkConfig.RequiredForOnline = "routable"; }; # set up hetzner cloud network during init - boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner"; + boot.initrd.systemd.network.networks."10-uplink" = config.systemd.network.networks."10-uplink"; boot.initrd.availableKernelModules = [ "virtio_pci" ]; # network kernel module # set up hetzner boot loader