diff --git a/lib/default.nix b/lib/default.nix
index 20798634..23c76415 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -53,7 +53,7 @@
     };
 
     add-unstable-packages = final: _prev: {
-      unstable = import nixpkgs-unstable {
+      unstable = import inputs.nixpkgs-unstable {
       inherit system; 
       config.allowUnfree = unfree; 
       hostPlatform = system;