raw nix commands

readded macos and got the command working locally
This commit is contained in:
Tyler Mayoff 2025-09-03 18:00:56 -04:00
parent ad44cc16ee
commit ee9613902b

View file

@ -13,14 +13,14 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
include: include:
- os: codeberg-tiny - os: linux
hostname: wash hostname: wash
arch: x86_64-linux arch: x86_64-linux
# - os: macos-latest # - os: darwin
# hostname: MAC-C57KK2TC69 # hostname: MAC-C57KK2TC69
# arch: aarch64-darwin # arch: aarch64-darwin
runs-on: ${{ matrix.os }} runs-on: codeberg-tiny
continue-on-error: false continue-on-error: false
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -42,16 +42,14 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH }}' authToken: '${{ secrets.CACHIX_AUTH }}'
- name: build nixos - name: build nixos
if: ${{ matrix.os }} == 'linux'
run: | run: |
nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1 nix build ./dot_config/flake#nixosConfigurations.${{matrix.hostname}}.config.system.build.toplevel --cores 1 -j1
# - uses: https://github.com/workflow/nix-shell-action@v3 # - name: build darwin
# if: runner.os == 'macOS' # if: runner.os == 'macOS'
# name: build darwin # run: |
# with: # nix build ./dot_config/flake#darwinConfigurations.${{matrix.hostname}}.config.system.build.topLevel --cores 1 -j1
# packages: nh
# script: |
# 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