summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml15
-rw-r--r--checks.nix (renamed from test.nix)0
-rw-r--r--flake.lock12
-rw-r--r--flake.nix3
4 files changed, 24 insertions, 6 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
diff --git a/test.nix b/checks.nix
index fd6e3f0..fd6e3f0 100644
--- a/test.nix
+++ b/checks.nix
diff --git a/flake.lock b/flake.lock
index 5afbe38..fe074e7 100644
--- a/flake.lock
+++ b/flake.lock
@@ -48,16 +48,18 @@
},
"nixpkgs": {
"locked": {
- "lastModified": 1643472818,
- "narHash": "sha256-qzVPxKDUubYIxKRSuDl/JgzXWSmGvUVYny9SxFMfPJM=",
+ "lastModified": 1643503720,
+ "narHash": "sha256-tJic20ufuRnG8V+fTCd3YU6xl1ImxNspoEkXHct0AG4=",
"owner": "NixOS",
"repo": "nixpkgs",
- "rev": "7f65e4abd5ecaad12d2d26e4380d1a7d8edafea7",
+ "rev": "0f316e4d72daed659233817ffe52bf08e081b5de",
"type": "github"
},
"original": {
- "id": "nixpkgs",
- "type": "indirect"
+ "owner": "NixOS",
+ "ref": "nixos-21.11",
+ "repo": "nixpkgs",
+ "type": "github"
}
},
"root": {
diff --git a/flake.nix b/flake.nix
index f763fbf..66c5edf 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,5 +1,6 @@
{
inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.11";
devshell.url = "github:numtide/devshell";
nixlib.url = "github:divnix/nixpkgs.lib";
flake-compat = {
@@ -32,6 +33,6 @@
packages = polyfillOutput ./packages.nix;
- checks = polyfillOutput ./test.nix;
+ checks = polyfillOutput ./checks.nix;
};
}