home-manager: fix build in non-Linux #242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v22 | |
with: | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
extra-platforms = aarch64-linux | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Setup aarch64-linux | |
run: | | |
DEBIAN_FRONTEND=noninteractive | |
sudo apt-get update -q -y | |
sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static | |
- uses: cachix/cachix-action@v12 | |
with: | |
authToken: ${{ secrets.CACHIX_TOKEN }} | |
extraPullNames: nix-community | |
name: thiagokokada-nix-configs | |
- name: Set default git branch (to reduce log spam) | |
run: git config --global init.defaultBranch master | |
- name: Validate Flakes | |
run: nix flake check --print-build-logs | |
name: validate-flakes | |
"on": | |
- push | |
- workflow_dispatch |