Skip to content

nix: update config

nix: update config #35

name: Nix build and push to Cachix
on:
push:
branches:
- master
paths:
- 'nix/**'
- '.github/workflows/**'
jobs:
build:
name: ${{ matrix.profile }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
profile: [gregnix-personal, gregnix-nubank]
steps:
- uses: easimon/maximize-build-space@v6
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v18
- uses: cachix/cachix-action@v12
with:
name: ericdallo
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
# Needed because cachix is also installed by Home Manager
- name: "Set priority flag for Cachix 🚩"
run: nix-env --set-flag priority 0 cachix
- name: "Build ❄"
run: |
make build-${{ matrix.profile }} -C nix