mirror of
https://github.com/sstent/NixOS_ARM_SDImages.git
synced 2026-02-02 02:21:47 +00:00
add aarch64
This commit is contained in:
40
.github/workflows/Build_SDImage_aarch64.yml
vendored
Normal file
40
.github/workflows/Build_SDImage_aarch64.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
name: Build OS Image - AARCH64
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-default-image:
|
||||||
|
name: Build OS image - AARCH64
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
|
- uses: cachix/install-nix-action@v13
|
||||||
|
with:
|
||||||
|
# Pin because the latest all-hardware profile changes
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/128532
|
||||||
|
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c23146505c35a07bafbecf36af4f9ebde2bb7dfd.tar.gz
|
||||||
|
extra_nix_config: |
|
||||||
|
extra-platforms = aarch64-linux
|
||||||
|
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
sudo apt -y install qemu-user-static
|
||||||
|
|
||||||
|
- name: Test binfmt
|
||||||
|
run: |
|
||||||
|
cat /proc/sys/fs/binfmt_misc/qemu-aarch64
|
||||||
|
/usr/bin/qemu-aarch64-static --version
|
||||||
|
|
||||||
|
- name: Build SD Image
|
||||||
|
run: |
|
||||||
|
nix-build '<nixpkgs/nixos>' \
|
||||||
|
-A config.system.build.sdImage \
|
||||||
|
-I nixos-config=./sd-image_aarch64.nix \
|
||||||
|
--argstr system aarch64-linux \
|
||||||
|
--option sandbox false
|
||||||
|
|
||||||
|
- uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: sd-image_aarch64.img
|
||||||
|
path: ./result/sd-image/*.img*
|
||||||
9
sd-image_aarch64.nix
Normal file
9
sd-image_aarch64.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{ ... }: {
|
||||||
|
imports = [
|
||||||
|
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
||||||
|
];
|
||||||
|
# put your own configuration here, for example ssh keys:
|
||||||
|
users.users.root.openssh.authorizedKeys.keys = [
|
||||||
|
"ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwn26AL26A0Yt4sE+rm5//p8QKuNGI/ezAdNJX9QAjRErjEWnsiUr+w0O78912A2RCakdZYZJo6p1RuLYq6u27mjdLU1hhJs1t/ZFUjevKP33Q8hjptnV3s/G/iPfl0h4kQDStNySgJJ7cGh8Dhj906BrQbns3U2WgVZWwhaYvFiSjZA9UWwvB+n/jN9YeSShfdqGYw8/WlFZiOZrz4poO6/DUOAiztvzrpaQFDtI2f9TdGL1ttvYk04jDCRO1cM1LjgWir+WToalgyAqxfgnlvbv8g16RQo//8qhRdMqQPJKnIRewy/VLN1VbNbO2+z5f6BYbYlfioDXmuzMb86jfQ=="
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user