diff --git a/modules/write-flake.nix b/modules/write-flake.nix index 8501a2f..33dc05d 100644 --- a/modules/write-flake.nix +++ b/modules/write-flake.nix @@ -89,6 +89,7 @@ let name = "flake-formatted"; passAsFile = [ "unformatted" ]; inherit unformatted; + preferLocalBuild = true; phases = [ "format" ]; format = '' cp $unformattedPath flake.nix @@ -126,7 +127,7 @@ let (lib.concatStringsSep "\n") ]; in - pkgs.runCommand "check-flake-file" + pkgs.runCommandLocal "check-flake-file" { nativeBuildInputs = [ pkgs.diffutils ]; } diff --git a/modules/write-inputs.nix b/modules/write-inputs.nix index a658f98..8c26890 100644 --- a/modules/write-inputs.nix +++ b/modules/write-inputs.nix @@ -20,6 +20,7 @@ let copy = '' cp $inputsStringPath $out ''; + preferLocalBuild = true; }; write-inputs =