diff --git a/lib/deploy-rs.nix b/lib/deploy-rs.nix
index bb164d7f..c4676066 100644
--- a/lib/deploy-rs.nix
+++ b/lib/deploy-rs.nix
@@ -1,4 +1,4 @@
-let lock = builtins.fromJSON (builtins.readFile ./flake.lock).nodes.flake-compat.lockedd;
+let lock = builtins.fromJSON (builtins.readFile ../flake.lock).nodes.flake-compat.lockedd;
 in import (fetchTarball {
     url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
     sha256 = lock.nodes.flake-compat.locked.narHash;