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