nix-community/nixos-anywhere

[bug]: fails to install on hetzner vps.

Closed this issue · 0 comments

Hey I was trying to install nixes on hetzner vps and I couldn't do so.

The main log error:

### Formatting hard drive with disko ###
Warning: Permanently added '116.203.225.198' (ED25519) to the list of known hosts.
/nix/store/962ym3c8f8pq6b763jicbp8k2vnknmry-disko: line 3: /nix/store/w8p87ilgm572kw000sbfqvfxziiw2sqz-util-linux-2.39.4-bin/bin/umount: cannot execute binary file: Exec format error
++ realpath /dev/sda
/nix/store/pin3a1kj24rp3axk9f1f0n00yxgr7div-disk-deactivate/disk-deactivate: line 4: /nix/store/wsaqva4d6gdwk1fzbblb31awdv6g0lph-coreutils-full-9.5/bin/realpath: cannot execute binary file: Exec format error
+ disk=
+++ mktemp -d
/nix/store/962ym3c8f8pq6b763jicbp8k2vnknmry-disko: line 12: /nix/store/wsaqva4d6gdwk1fzbblb31awdv6g0lph-coreutils-full-9.5/bin/mktemp: cannot execute binary file: Exec format error
++ disko_devices_dir=
Connection to 116.203.225.198 closed.

Vps arch: aarch64-linux

flake.nix

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    disko.url = "github:nix-community/disko";
    disko.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = { nixpkgs, disko, ... }: {
    nixosConfigurations.wolf = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          disko.nixosModules.disko
          ./configuration.nix
          ./disk-config.nix
        ];
      };
  };

}

configuration.nix and disk-config.nix are from the example one. I.e from here