Skip to content

Commit

Permalink
use normal nix build instead of nixos/darwin-rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
esselius committed Jul 25, 2024
1 parent 274d81a commit 0d5ec6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/darwin-rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: drv-check
run: |
echo -n result= >> $GITHUB_OUTPUT
nix path-info --derivation .#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel | base64 | tee /tmp/drv >> $GITHUB_OUTPUT
nix --accept-flake-config path-info --derivation .#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel | base64 | tee /tmp/drv >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: cache-test
Expand All @@ -40,4 +40,4 @@ jobs:

- name: Build darwin config
if: steps.cache-test.outputs.cache-hit != 'true'
run: nix run nix-darwin -- build --flake .#${{ matrix.host }}
run: nix --accept-flake-config build .#darwinConfigurations.${{ matrix.host }}.config.system.build.toplevel
4 changes: 2 additions & 2 deletions .github/workflows/nixos-rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: drv-check
run: |
echo -n result= >> $GITHUB_OUTPUT
nix path-info --derivation .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel | base64 -w 0 | tee /tmp/drv >> $GITHUB_OUTPUT
nix --accept-flake-config path-info --derivation .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel | base64 -w 0 | tee /tmp/drv >> $GITHUB_OUTPUT
- uses: nix-community/cache-nix-action/save@v5
if: github.ref == 'ref/head/main'
Expand All @@ -55,4 +55,4 @@ jobs:

- name: Build nixos config
if: steps.cache-test.outputs.cache-hit != 'true'
run: nix run nixpkgs#nixos-rebuild -- build --flake .#${{ matrix.host }}
run: nix --accept-flake-config build .#nixosConfigurations.${{ matrix.host }}.config.system.build.toplevel

0 comments on commit 0d5ec6e

Please sign in to comment.