diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 69e4be1..4f9b762 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -37,14 +37,11 @@ jobs: - uses: actions/checkout@v4 - - run: nix shell -L - name: Build - - run: | - dir=$(mktemp -d) - cd $dir + NH_CHECKOUT=$(pwd) + NH_FLAKE=$(mktemp -d) + cd $NH_FLAKE nix flake init -t nix-darwin - name: Setup Darwin configuration - - - run: nh darwin switch --hostname simple --dry . + cd $NH_CHECKOUT + nix run -L darwin switch -- --hostname simple --dry name: Build Simple Nix Darwin Configuration