wip on probe (hetzner cloud machine)

This commit is contained in:
Ingolf Wagner 2024-06-21 23:25:17 +02:00
parent c2e75689a0
commit 5e7a4a0565
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 19 additions and 4 deletions

View file

@ -197,8 +197,10 @@
# and makes the controller accept them.
# will automatic look into `/machines/<name>/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
];

View file

@ -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";
}

View file

@ -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;
};
}

View file

@ -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;
};
}