mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-11-21 16:10:52 +00:00
Merge pull request #24 from cachix/macos-spotlight
macos: disable spotlight
This commit is contained in:
commit
df989ac1d6
2 changed files with 5 additions and 0 deletions
|
@ -42,6 +42,8 @@ function run() {
|
|||
// Catalina workaround https://github.com/NixOS/nix/issues/2925
|
||||
if (os_1.type() == "Darwin") {
|
||||
child_process_1.execFileSync(`${__dirname}/create-darwin-volume.sh`, { stdio: 'inherit' });
|
||||
// Disable spotlight indexing of /nix to speed up performance
|
||||
yield exec.exec("sudo", ["mdutil", "-i", "off", "/nix"]);
|
||||
}
|
||||
// Needed due to multi-user being too defensive
|
||||
core.exportVariable('ALLOW_PREEXISTING_INSTALLATION', "1");
|
||||
|
|
|
@ -27,6 +27,9 @@ async function run() {
|
|||
// Catalina workaround https://github.com/NixOS/nix/issues/2925
|
||||
if (type() == "Darwin") {
|
||||
execFileSync(`${__dirname}/create-darwin-volume.sh`, { stdio: 'inherit' });
|
||||
|
||||
// Disable spotlight indexing of /nix to speed up performance
|
||||
await exec.exec("sudo", ["mdutil", "-i", "off", "/nix"]);
|
||||
}
|
||||
|
||||
// Needed due to multi-user being too defensive
|
||||
|
|
Loading…
Reference in a new issue