diff --git a/flake.nix b/flake.nix index eb056fd..0440faa 100644 --- a/flake.nix +++ b/flake.nix @@ -197,8 +197,10 @@ # and makes the controller accept them. # will automatic look into `/machines//facts/zerotier-ip inputs.clan-core.clanModules.zerotier-static-peers + # Statically configure the host names of machines based on their respective zerotier-ip. inputs.clan-core.clanModules.static-hosts + # generate ssh host keys with facts inputs.clan-core.clanModules.sshd ]; diff --git a/machines/probe/configuration.nix b/machines/probe/configuration.nix index 1f9f443..973d60a 100644 --- a/machines/probe/configuration.nix +++ b/machines/probe/configuration.nix @@ -6,8 +6,11 @@ ]; components.mainUser.enable = true; + components.network.enable = true; networking.hostName = "probe"; users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJkqVvuJSvRMO5pG2CHNNBxjB7HlJudK4TQs3BhbOWOD" ]; + users.users.root.initialPassword = "admin"; + users.users.mainUser.initialPassword = "admin"; } diff --git a/machines/probe/hardware-configuration/default.nix b/machines/probe/hardware-configuration/default.nix index 18367ab..0c2cbf0 100644 --- a/machines/probe/hardware-configuration/default.nix +++ b/machines/probe/hardware-configuration/default.nix @@ -3,13 +3,11 @@ imports = [ ./disko-config.nix ./hardware-configuration.nix + ./hetzner.nix # to more me to components ]; boot.tmp.useTmpfs = true; # make /tmp a tmpfs (performance!) - boot.loader.grub = { - efiSupport = true; - efiInstallAsRemovable = true; - }; + } diff --git a/machines/probe/hardware-configuration/hetzner.nix b/machines/probe/hardware-configuration/hetzner.nix new file mode 100644 index 0000000..a42575c --- /dev/null +++ b/machines/probe/hardware-configuration/hetzner.nix @@ -0,0 +1,12 @@ +{ + systemd.network.enable = true; + systemd.network.networks."10-private-hetzner" = { + matchConfig.Name = "en*"; + networkConfig.DHCP = "ipv4"; + linkConfig.RequiredForOnline = "routable"; + }; + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + }; +}