-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 796 Bytes
/
nix-build.yml
File metadata and controls
34 lines (29 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: "Build and cache Nix Flake"
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Nix with Flakes support
uses: cachix/install-nix-action@v26
with:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Setup Cachix
uses: cachix/cachix-action@v14
with:
name: rwietter
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPushArgs: "--jobs 8"
- name: Build Flake outputs
run: nix build .#nixosConfigurations.rwietter.config.system.build.toplevel .#homeConfigurations.rwietter.activationPackage