dotfiles
My PC Dotfiles & Websitegit clone https://github.com/maydayv7/dotfiles
commit 6276d998a52691043f35e864c521d781644fb957 parent affe1ee50b1d79c718e79cb47e326ec865c7669a Author: maydayv7 <maydayv7@gmail.com> Date: Mon, 23 Oct 2023 18:26:23 +0530 fix(ci): Relative Flake Inputs Due to https://github.com/NixOS/nix/issues/3978
Diffstat:
| M | .github/workflows/build.yml | | | 9 | ++++++++- |
| M | .github/workflows/check.yml | | | 9 | ++++++++- |
| M | .github/workflows/release.yml | | | 9 | ++++++++- |
| M | .github/workflows/shell.yml | | | 9 | ++++++++- |
| M | .github/workflows/update.yml | | | 2 | ++ |
| M | .github/workflows/website.yml | | | 2 | ++ |
6 files changed, 36 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml @@ -33,6 +33,11 @@ jobs: sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Clone Repo + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 - name: Install Nix uses: cachix/install-nix-action@v23 with: @@ -45,5 +50,7 @@ jobs: with: name: maydayv7-dotfiles authToken: "${{ secrets.CACHIX_TOKEN }}" + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Build Configuration - run: nix build github:maydayv7/dotfiles#nixosConfigurations.${{ matrix.device }}.config.system.build.toplevel -L --show-trace + run: nix build .#nixosConfigurations.${{ matrix.device }}.config.system.build.toplevel -L --show-trace diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml @@ -20,6 +20,11 @@ jobs: sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Clone Repo + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 - name: Install Nix uses: cachix/install-nix-action@v23 with: @@ -27,5 +32,7 @@ jobs: experimental-features = nix-command flakes accept-flake-config = true access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Check Syntax - run: nix flake check github:maydayv7/dotfiles --keep-going + run: nix flake check . --keep-going diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -9,6 +9,11 @@ jobs: release: runs-on: ubuntu-latest steps: + - name: Clone Repo + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 - name: Install Nix uses: cachix/install-nix-action@v23 with: @@ -16,8 +21,10 @@ jobs: experimental-features = nix-command flakes accept-flake-config = true access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Build Default Install Media - run: nix build github:maydayv7/dotfiles#installMedia.xfce.config.system.build.isoImage -L --show-trace + run: nix build .#installMedia.xfce.config.system.build.isoImage -L --show-trace - name: Draft Release uses: ncipollo/release-action@v1.13.0 with: diff --git a/.github/workflows/shell.yml b/.github/workflows/shell.yml @@ -12,6 +12,11 @@ jobs: matrix: shell: [cc, format, go, java, lisp, lua, python, rust, video, website] steps: + - name: Clone Repo + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 - name: Install Nix uses: cachix/install-nix-action@v23 with: @@ -24,5 +29,7 @@ jobs: with: name: maydayv7-dotfiles authToken: "${{ secrets.CACHIX_TOKEN }}" + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Check Shells - run: nix develop github:maydayv7/dotfiles#${{ matrix.shell }} + run: nix develop .#${{ matrix.shell }} diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml @@ -22,6 +22,8 @@ jobs: experimental-features = nix-command flakes accept-flake-config = true access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Update Flake Lock File uses: DeterminateSystems/update-flake-lock@v20 with: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml @@ -22,6 +22,8 @@ jobs: experimental-features = nix-command flakes accept-flake-config = true access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Fix Relative Flake Inputs + run: nix flake lock --update-input systems - name: Build Zola Site run: nix build .#website - name: Deploy to GitHub Pages