Skip to content

Commit

Permalink
Adding aarch64-linux architecture support
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGuilloux committed Oct 22, 2024
1 parent 25358d3 commit 9c62d54
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
strategy:
matrix:
arch:
- 'x86_64'
- 'aarch64'
- 'x86_64-linux'
- 'aarch64-linux'
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y qemu-user-static

- uses: cachix/install-nix-action@v21
with:
extra_nix_config: |
system = ${{ matrix.arch }}-linux
system = ${{ matrix.arch }}
- name: Building tarball for ${{ matrix.arch }}
run: nix build

- name: Uploading artifacts
uses: actions/upload-artifact@v3
with:
name: nixos-system-${{ matrix.arch }}-linux.tar.xz
path: result/tarball/nixos-system-${{ matrix.arch }}-linux.tar.xz
name: nixos-system-${{ matrix.arch }}.tar.xz
path: result/tarball/nixos-system-${{ matrix.arch }}.tar.xz
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ GNU/Linux that has `systemd` using `machinectl`.
You don't need `nix` or NixOS to fetch and run the image:

```sh
# x86_64-linux architecture
machinectl pull-tar https://github.com/tfc/nspawn-nixos/releases/download/v1.0/nixos-system-x86_64-linux.tar.xz nixos --verify=no
machinectl start nixos

# aarch64-linux architecture
machinectl pull-tar https://github.com/tfc/nspawn-nixos/releases/download/v1.0/nixos-system-aarch64-linux.tar.xz nixos --verify=no

machinectl start nixos
# Set root password
machinectl shell nixos /usr/bin/env passwd

machinectl login nixos
```

Expand Down

0 comments on commit 9c62d54

Please sign in to comment.