hydra-staging: switch to aarch64-linux
Jörg Thalheim committed
Jul 10, 2025 at 21:36 UTC
e12e4528e3b024f7ceaa362e3f5ce13cfc8296c0
2 files changed
+15
-5
non-critical-infra/hosts/staging-hydra/bootstrap-staging-hydra.sh
+9
-2
@@ -10,7 +10,13 @@ trap 'rm -rf "$tmpDir"' EXIT
10
11
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
12
13
-for keyname in ssh_host_ed25519_key ssh_host_ed25519_key.pub; do
13
+keys=(
14
+ ssh_host_ed25519_key
15
+ ssh_host_ed25519_key_pub
16
+ ssh_host_rsa_key
17
+ ssh_host_rsa_key_pub
18
+)
19
+for keyname in "${keys[@]}"; do
20
if [[ $keyname == *.pub ]]; then
21
umask 0133
22
else
@@ -18,4 +24,5 @@ for keyname in ssh_host_ed25519_key ssh_host_ed25519_key.pub; do
24
fi
25
sops --extract '["'$keyname'"]' --decrypt "$SCRIPT_DIR/../../secrets/staging-hydra-hostkeys.yaml" >"$sshDir/$keyname"
26
done
21
-nix run nixpkgs#nixos-anywhere -- --extra-files "$tmpDir" -f .#staging-hydra root@157.180.25.203
27
+# Mounted NixOS minimal image
28
+nix run nixpkgs#nixos-anywhere -- --extra-files "$tmpDir" -f .#staging-hydra nixos@157.180.25.203
non-critical-infra/hosts/staging-hydra/hardware.nix
+6
-3
@@ -1,15 +1,18 @@
1
-{ lib, ... }:
1
+{ lib, modulesPath, ... }:
2
{
3
-
3
+ imports = [
4
+ (modulesPath + "/profiles/qemu-guest.nix")
5
+ ];
6
boot.initrd = {
7
availableKernelModules = [
8
"xhci_pci"
9
"virtio_pci"
10
+ "virtio_scsi"
11
"usbhid"
12
"sr_mod"
13
];
14
kernelModules = [ "virtio_gpu" ];
15
};
16
14
- nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
17
+ nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
18
}