Skip to content

Commit

Permalink
rp3: Build and deploy with Cachix Deploy
Browse files Browse the repository at this point in the history
* Install QEMU static binaries so we can aarch64 images
* Configure Nix to build for aarch64 with emulation
* Install cachix-agent on rp3
  • Loading branch information
wagdav committed Nov 15, 2023
1 parent 104f70c commit 18ec14a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
};
Expand Down
1 change: 1 addition & 0 deletions host-rp3.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
imports = [
./hardware/rp3.nix
./modules/common.nix
./modules/cachix.nix
./modules/remote-builder
./modules/consul/client.nix
];
Expand Down

0 comments on commit 18ec14a

Please sign in to comment.