diff --git a/.github/workflows/darwin-rebuild.yaml b/.github/workflows/darwin-rebuild.yaml index 1e920dc..c361741 100644 --- a/.github/workflows/darwin-rebuild.yaml +++ b/.github/workflows/darwin-rebuild.yaml @@ -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 @@ -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 diff --git a/.github/workflows/nixos-rebuild.yaml b/.github/workflows/nixos-rebuild.yaml index cba1a62..bc36b7c 100644 --- a/.github/workflows/nixos-rebuild.yaml +++ b/.github/workflows/nixos-rebuild.yaml @@ -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' @@ -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