diff --git a/machines/probe/configuration.nix b/machines/probe/configuration.nix index 46b5999..48ae5c8 100644 --- a/machines/probe/configuration.nix +++ b/machines/probe/configuration.nix @@ -12,11 +12,9 @@ components.nixos.boot.enable = true; components.nixos.boot.ssh.enable = true; - components.nixos.boot.ssh.kernelModules = ["virtio_pci"]; - networking.hostName = "probe"; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ]; - users.users.root.initialPassword = "admin"; + #users.users.root.initialPassword = "admin"; } diff --git a/machines/probe/hardware-configuration/hetzner.nix b/machines/probe/hardware-configuration/hetzner.nix index caeb738..92616e8 100644 --- a/machines/probe/hardware-configuration/hetzner.nix +++ b/machines/probe/hardware-configuration/hetzner.nix @@ -1,15 +1,19 @@ -{config, ... }: +{ config, ... }: { - systemd.network.enable = true; + # set up hetzner cloud network + systemd.network.enable = true; systemd.network.networks."10-hetzner" = { - matchConfig.Name = "e*"; + 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.availableKernelModules = [ "virtio_pci" ]; # network kernel module + # set up hetzner boot loader boot.loader.grub = { efiSupport = true; efiInstallAsRemovable = true;