diff --git a/flake.nix b/flake.nix
index 62ff2989..c83a3b8b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -55,9 +55,20 @@
           inherit (lib.lists) findFirst;
           inherit (lib.strings) hasPrefix removePrefix substring;
 
+          myOverlays = [
+            (import rust-overlay)
+            (_: prev: {
+              util-linux = prev.util-linux.override {
+                ncursesSupport = false;
+                nlsSupport = false;
+                pamSupport = false;
+                systemdSupport = false;
+              };
+            })
+          ];
           pkgs = import nixpkgs {
             inherit system;
-            overlays = [ (import rust-overlay) ];
+            overlays = myOverlays;
           };
 
           cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml);
@@ -196,7 +207,7 @@
                   localSystem = system;
                   pkgs' = import nixpkgs {
                     inherit crossSystem localSystem;
-                    overlays = [ (import rust-overlay) ];
+                    overlays = myOverlays;
                   };
 
                   common = pkgs'.callPackage mkCommon { inherit crane; };