From 18de045d7788df2343aec58df7b85c10d1f5d5dd Mon Sep 17 00:00:00 2001 From: oxalica Date: Tue, 9 May 2023 01:16:20 +0800 Subject: [PATCH] Disable autoEvalInputs by default This is too costly for huge flakes with lots of packages or leavy tests, and also have issues on locked transitive inputs (#79). --- crates/nil/src/config.rs | 2 +- dev/vim-coc.nix | 1 + docs/configuration.md | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/nil/src/config.rs b/crates/nil/src/config.rs index c54cbcc..e1bf5ae 100644 --- a/crates/nil/src/config.rs +++ b/crates/nil/src/config.rs @@ -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()), } } diff --git a/dev/vim-coc.nix b/dev/vim-coc.nix index 041708e..179dc33 100644 --- a/dev/vim-coc.nix +++ b/dev/vim-coc.nix @@ -99,6 +99,7 @@ let ''; nil.formatting.command = [ "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt" ]; nil.diagnostics.excludedFiles = [ "generated.nix" ]; + nil.nix.flake.autoEvalInputs = true; }; diff --git a/docs/configuration.md b/docs/configuration.md index 1078d7a..25bc4e3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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