From 2b9062e1f1cd690e0208d6b4f3e54bf1b4b30fb3 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Wed, 7 Aug 2024 21:51:43 +0200 Subject: [PATCH] refactor --- machines/orbi/hardware-configuration/default.nix | 5 +++-- machines/orbi/hardware-configuration/hetzner.nix | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 machines/orbi/hardware-configuration/hetzner.nix diff --git a/machines/orbi/hardware-configuration/default.nix b/machines/orbi/hardware-configuration/default.nix index d71ac9f..7460101 100644 --- a/machines/orbi/hardware-configuration/default.nix +++ b/machines/orbi/hardware-configuration/default.nix @@ -32,6 +32,7 @@ in imports = [ ./disko-config.nix ./hardware-configuration.nix + ./hetzner.nix ]; services.smartd.enable = true; @@ -56,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-uplink".networkConfig.Address = ipv6.address; - boot.initrd.systemd.network.networks."10-uplink" = config.systemd.network.networks."10-uplink"; + systemd.network.networks."10-hetzner".networkConfig.Address = ipv6.address; + boot.initrd.systemd.network.networks."10-hetzner" = config.systemd.network.networks."10-hetzner"; # todo: use ssh component boot.initrd.kernelModules = [ networkInterfaceModule ]; diff --git a/machines/orbi/hardware-configuration/hetzner.nix b/machines/orbi/hardware-configuration/hetzner.nix new file mode 100644 index 0000000..478b43d --- /dev/null +++ b/machines/orbi/hardware-configuration/hetzner.nix @@ -0,0 +1,2 @@ +{ config, ... }: +{ }