From 18ec14a707d3617897f805343c05ae5c0cf1baad Mon Sep 17 00:00:00 2001 From: David Wagner Date: Sat, 11 Nov 2023 18:42:05 +0100 Subject: [PATCH] rp3: Build and deploy with Cachix Deploy * Install QEMU static binaries so we can aarch64 images * Configure Nix to build for aarch64 with emulation * Install cachix-agent on rp3 --- .github/workflows/build-and-deploy.yml | 2 ++ flake.nix | 1 + host-rp3.nix | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 8c04eae..a50d26a 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -18,9 +18,11 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: docker/setup-qemu-action@v3 - uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: "extra-platforms = aarch64-linux" - uses: cachix/cachix-action@v12 with: name: wagdav diff --git a/flake.nix b/flake.nix index 7361052..f165e81 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,7 @@ agents = { nuc = self.nixosConfigurations.nuc.config.system.build.toplevel; x230 = self.nixosConfigurations.x230.config.system.build.toplevel; + rp3 = self.nixosConfigurations.rp3.config.system.build.toplevel; }; }; }; diff --git a/host-rp3.nix b/host-rp3.nix index ff5f49f..d25f556 100644 --- a/host-rp3.nix +++ b/host-rp3.nix @@ -4,6 +4,7 @@ imports = [ ./hardware/rp3.nix ./modules/common.nix + ./modules/cachix.nix ./modules/remote-builder ./modules/consul/client.nix ];