wip on probe (hetzner cloud machine)
This commit is contained in:
parent
c2e75689a0
commit
5e7a4a0565
4 changed files with 19 additions and 4 deletions
|
@ -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
|
||||
];
|
||||
|
|
|
@ -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";
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
|
12
machines/probe/hardware-configuration/hetzner.nix
Normal file
12
machines/probe/hardware-configuration/hetzner.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue