try to configure store for the duration of the build

This commit is contained in:
Cyryl Płotnicki 2022-12-25 16:36:22 +00:00
parent 1052ee25ce
commit fc955dc923

View file

@ -4,8 +4,10 @@ pipeline:
image: nixpkgs/nix-flakes:latest
pull: true
commands:
- mkdir -p ~/.config/nix
- echo "store = /var/build-nix-store" >> ~/.config/nix/nix.conf
- time nix flake metadata
- time nix --no-sandbox develop --eval-store /var/build-nix-store -c statix check
- time nix flake check --eval-store /var/build-nix-store
- time nix --no-sandbox develop -c statix check
- time nix flake check
volumes:
- /var/lib/woodpecker/nix-store:/var/build-nix-store