build: add .gitlab-ci.yml

With job for pushing to cachix.
This commit is contained in:
Felix Schröter 2022-06-28 02:25:19 +02:00
parent c739b83a86
commit 285870698a
Signed by: felschr
GPG key ID: 671E39E6744C807D

17
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,17 @@
image: nixos/nix:2.9.1
variables:
NIX_CONFIG: "experimental-features = nix-command flakes"
build:
stage: build
allow_failure: true
parallel:
matrix:
- DEVICE: [home-pc, home-server]
script:
- nix-env -iA cachix -f https://cachix.org/api/v1/install
- cachix use felschr
- cachix watch-exec felschr nix build .#nixosConfigurations.$DEVICE.config.system.build.toplevel
only:
- main