hcloud: add arm subprofile (#214)

This commit is contained in:
Jörg Thalheim 2023-08-07 15:06:58 +01:00 committed by GitHub
parent 85fed23fce
commit 8247932132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 0 deletions

View File

@ -57,6 +57,16 @@ in
}
];
};
example-hardware-hetzner-cloud-arm = nixosSystem {
inherit system;
modules = [
dummy
srvos.nixosModules.hardware-hetzner-cloud-arm
{
systemd.network.networks."10-uplink".networkConfig.Address = "::cafe:babe:feed:face:dead:beef";
}
];
};
example-hardware-vultr-bare-metal = nixosSystem {
inherit system;
modules = [

View File

@ -16,6 +16,12 @@ Hardware configuration for <https://www.hetzner.com/cloud> instances.
The main difference here is that cloud-init is enabled.
### `nixosModules.hardware-hetzner-cloud-arm`
Hardware configuration for <https://www.hetzner.com/cloud> arm instances.
The main difference from `nixosModules.hardware-hetzner-cloud` is using systemd-boot by default.
### `nixosModules.hardware-hetzner-online-amd`
Hardware configuration for <https://www.hetzner.com/dedicated-rootserver> bare-metal AMD servers.

View File

@ -40,6 +40,7 @@ exposeModules ./. [
./desktop
./hardware/amazon
./hardware/hetzner-cloud
./hardware/hetzner-cloud/arm.nix
./hardware/hetzner-online/amd.nix
./hardware/hetzner-online/intel.nix
./hardware/hetzner-online/ex101.nix

View File

@ -0,0 +1,13 @@
{
imports = [
./.
];
config = {
# arm uses EFI, so we need systemd-boot
boot.loader.systemd-boot.enable = true;
boot.loader.timeout = 30;
# since it's a vm, we can do this on every update safely
boot.loader.efi.canTouchEfiVariables = true;
};
}