build01: add zpool import workaround

This commit is contained in:
zowoq 2024-07-25 19:35:27 +10:00
parent 96575d1a00
commit 347fbab610

View file

@ -1,4 +1,4 @@
{ inputs, ... }:
{ config, inputs, ... }:
{
imports = [
inputs.srvos.nixosModules.hardware-hetzner-online-amd
@ -8,6 +8,9 @@
inputs.self.nixosModules.community-builder
];
# the default zpool import services somehow times out while this import works fine?
boot.initrd.systemd.services.zfs-import-zroot.serviceConfig.ExecStartPre = "${config.boot.zfs.package}/bin/zpool import -N -f zroot";
# Emulate riscv64 until we have proper builders
boot.binfmt.emulatedSystems = [ "riscv64-linux" ];