Skip to content

Commit

Permalink
Disable autoEvalInputs by default
Browse files Browse the repository at this point in the history
This is too costly for huge flakes with lots of packages or leavy tests,
and also have issues on locked transitive inputs (#79).
  • Loading branch information
oxalica committed May 9, 2023
1 parent 67bfe95 commit 18de045
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/nil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl Config {
formatting_command: None,
nix_binary: "nix".into(),
nix_flake_auto_archive: None,
nix_flake_auto_eval_inputs: true,
nix_flake_auto_eval_inputs: false,
nix_flake_nixpkgs_input_name: Some("nixpkgs".into()),
}
}
Expand Down
1 change: 1 addition & 0 deletions dev/vim-coc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ let
'';
nil.formatting.command = [ "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" ];
nil.diagnostics.excludedFiles = [ "generated.nix" ];
nil.nix.flake.autoEvalInputs = true;
};


Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ Default configuration:
// lots of time and/or memory.
//
// Type: boolean
// Example: false
"autoEvalInputs": true,
// Example: true
"autoEvalInputs": false,
// The input name of nixpkgs for NixOS options evaluation.
//
// The options hierarchy is used to improve completion, but may cost
Expand Down

0 comments on commit 18de045

Please sign in to comment.