From c0e0720c74dc8401ddd3d388da5530d1e313af94 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Thu, 13 Mar 2025 16:02:29 +0900 Subject: [PATCH] nix-builder-vm: disable `auto-optimise-store` This option is associated with corruption[1, 2] and is disabled by default in Nix as it can cause significant slowdowns[3]. [1]: https://github.com/NixOS/nix/issues/7273 [2]: https://github.com/LnL7/nix-darwin/pull/1152 [3]: https://github.com/NixOS/nix/issues/462#issuecomment-378189808 --- nixos/modules/profiles/nix-builder-vm.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/nixos/modules/profiles/nix-builder-vm.nix b/nixos/modules/profiles/nix-builder-vm.nix index fcaca974f302..1f5eff8f133f 100644 --- a/nixos/modules/profiles/nix-builder-vm.nix +++ b/nixos/modules/profiles/nix-builder-vm.nix @@ -127,8 +127,6 @@ in system.disableInstallerTools = true; nix.settings = { - auto-optimise-store = true; - min-free = cfg.min-free; max-free = cfg.max-free;