install nix

This commit is contained in:
Tyler Mayoff 2025-09-02 21:25:00 -04:00
parent 5a22b37d73
commit 2238aff468

View file

@ -26,9 +26,9 @@ jobs:
- uses: actions/checkout@v4
- name: install nix
uses: https://github.com/DeterminateSystems/determinate-nix-action@v3.5.2
with:
extra-conf: "lazy-trees = true"
uses: https://github.com/DeterminateSystems/determinate-nix-action
# with:
# extra-conf: "lazy-trees = true"
- uses: https://github.com/DeterminateSystems/magic-nix-cache-action@main
with:
@ -44,20 +44,20 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH }}'
- uses: https://github.com/workflow/nix-shell-action@v3
if: runner.os == 'Linux'
# if: runner.os == 'Linux'
name: build nixos
with:
packages: nh
script: |
nh os build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
- uses: https://github.com/workflow/nix-shell-action@v3
if: runner.os == 'macOS'
name: build darwin
with:
packages: nh
script: |
nh darwin build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
# - uses: https://github.com/workflow/nix-shell-action@v3
# if: runner.os == 'macOS'
# name: build darwin
# with:
# packages: nh
# script: |
# nh darwin build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}} --no-nom -- --cores 1 -j1
# - name: download last artifact
# uses: dawidd6/action-download-artifact@v11