diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 88766145f9b1ef62d35c7b4f872535ecdcfe2f1c..38a9660c3e10feee48c6670cf101f500df93ab32 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -5,12 +5,11 @@ variables:
 before_script:
   - apt-get update -qq
   - apt-get install -qq build-essential curl git
-cache:
-  paths:
-    - cargo/
-    - target/
-
 format:
+  cache:
+    paths:
+      - cargo/
+      - target/
   script:
     - rustup default nightly
     - rustup component add rustfmt
@@ -18,11 +17,19 @@ format:
 
 linux:
   image: 'rust:1.35.0'
+  cache:
+    paths:
+      - cargo/
+      - target/
   script:
     - cargo check
     - FULL=1 make tests
 
 linux:stable:
+  cache:
+    paths:
+      - cargo/
+      - target/
   script:
     - cargo check
     - TOOLCHAIN= make tests
diff --git a/Cargo.toml b/Cargo.toml
index bf174a38d790a477e1cbe8159b8adce38b7a4a62..329879ea47b208385340a242e152bcaa24cb9447 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -88,7 +88,7 @@ structopt = "^0.2"
 atty = "0.2"
 permutate = "0.3"
 xdg = "2.1"
-nix = { path = "../nix" }
+nix = "0.14"
 
 [target."cfg(all(unix, not(target_os = \"redox\")))".dependencies]
 users = "0.9"