ci: Update nix from 2.20.5 to 2.22.1

Might fix the ci.
This commit is contained in:
Donovan Glover 2024-06-20 19:23:46 -04:00
parent 08f0823b61
commit 665430f2ce
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -12,21 +12,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26 - uses: cachix/install-nix-action@v27
- run: nix flake check - run: nix flake check
format: format:
name: nix fmt -- --check **/*.nix name: nix fmt -- --check **/*.nix
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26 - uses: cachix/install-nix-action@v27
- run: nix fmt -- --check **/*.nix - run: nix fmt -- --check **/*.nix
example: example:
name: nix flake check ./example name: nix flake check ./example
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: cachix/install-nix-action@v26 - uses: cachix/install-nix-action@v27
- run: cp ./hardware/laptop.nix ./example/hardware-configuration.nix - run: cp ./hardware/laptop.nix ./example/hardware-configuration.nix
- run: git add . - run: git add .
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')?shallow=1" - run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')?shallow=1"