enable flakes with command line arguments

This commit is contained in:
Kristian Krsnik 2023-08-17 18:09:27 +02:00
parent 8f0d6c9010
commit 01c18f1511
1 changed files with 1 additions and 4 deletions

View File

@ -1,11 +1,8 @@
image: nixos/nix
pages:
script:
# enable flakes
- mkdir -p ~/.config/nix
- echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
# the final contents for your page always have to be stored in the public folder
- nix build
- nix build --experimental-features 'nix-command flakes'
- cp -r result/. public/
artifacts:
# artifact to make it visible for gitlab pages