summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParthiv Seetharaman <pachum99@myrdd.info>2022-02-05 21:19:42 -0800
committerParthiv Seetharaman <pachum99@myrdd.info>2022-02-05 21:19:42 -0800
commit95ec4d6b0df108c8cae67f7d6cef843eec635189 (patch)
treee290a77063508bc5faf78fc733aa015b6035c466
parente65f245314215dfca116d7d04e783ed767e168f7 (diff)
add gitlab ci to run flake check
-rw-r--r--.gitlab-ci.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..1a27ed3
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,15 @@
+default:
+ image: nixos/nix:2.6.0
+ before_script:
+ - mkdir -p ~/.config/nix/
+ - echo "experimental-features = flakes nix-command" >> ~/.config/nix/nix.conf
+ - echo "accept-flake-config = true" >> ~/.config/nix/nix.conf
+ - echo "extra-system-features = kvm" >> ~/.config/nix/nix.conf
+
+check:
+ only:
+ - branches
+ - tags
+ - merge_requests
+ script:
+ - nix flake check