fix: nix-darwin with nixos-23.11

This commit is contained in:
Ryan Yin
2023-11-27 13:42:15 +08:00
parent 0996ec71e9
commit a1f4764526
13 changed files with 57 additions and 58 deletions

View File

@@ -35,7 +35,10 @@
options = lib.mkDefault "--delete-older-than 7d";
};
# Manual optimise storage: nix-store --optimise
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
nix.settings.auto-optimise-store = true;
# Disable auto-optimise-store because of this issue:
# https://github.com/NixOS/nix/issues/7273
# "error: cannot link '/nix/store/.tmp-link-xxxxx-xxxxx' to '/nix/store/.links/xxxx': File exists"
nix.settings = {
auto-optimise-store = false;
};
}