diff --git a/flake.nix b/flake.nix
index 58dc5019deb909103e7ba055f370801578a4c91c..adb796a05e94945806d07900c231963d23f83b38 100644
--- a/flake.nix
+++ b/flake.nix
@@ -233,6 +233,8 @@
 
           separateDebugInfo = true;
 
+          strictDeps = true;
+
           passthru.perl-bindings = with final; stdenv.mkDerivation {
             name = "nix-perl-${version}";
 
@@ -517,6 +519,8 @@
           installCheckFlags = "sysconfdir=$(out)/etc";
 
           stripAllList = ["bin"];
+
+          strictDeps = true;
         };
       });