using modern nix

This commit is contained in:
revol-xut 2022-12-17 18:01:28 +01:00
parent 3395b47405
commit 01129ebf17
No known key found for this signature in database
GPG key ID: 4F56FF7759627D07

View file

@ -10,7 +10,7 @@ on:
jobs:
check-flake:
name: Check Flake
name: Nixpkgs Formatting
runs-on: ubuntu-latest
steps:
@ -21,8 +21,10 @@ jobs:
with:
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix-channel --list
- run: nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
- run: nix-channel --update
- run: nix-channel --list
- run: nix shell nixpkgs#nixpkgs-fmt -c nixpkgs-fmt . --check
- run: nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt . --check'