1
0

profiles/hetzner-cloud: Migrate Hetzner VMs to Hetzner Cloud profile

This commit is contained in:
2025-03-13 18:46:11 +01:00
parent ec6390be3f
commit 8eaf11fb57
6 changed files with 38 additions and 15 deletions

View File

@@ -3,6 +3,7 @@
{
imports = [
./hetzner-cloud
./netcup
];

View File

@@ -0,0 +1,30 @@
{ config, lib, ... }:
with lib;
{
options.profiles.clerie.hetzner-cloud = {
enable = mkEnableOption "Profile for Hetzner Cloud VMs";
};
config = mkIf config.profiles.clerie.hetzner-cloud.enable {
services.qemuGuest.enable = true;
networking.defaultGateway6 = { address = "fe80::1"; interface = "ens3"; };
networking.defaultGateway = { address = "172.31.1.1"; interface = "ens3"; };
networking.nameservers = [
# There are two different batches of DNS servers
# This one
"2a01:4ff:ff00::add:2" "2a01:4ff:ff00::add:1"
"185.12.64.2" "185.12.64.1"
# And that one
"213.133.98.98" "213.133.99.99" "213.133.100.100"
# Couldn't find out which to use
];
};
}