diff --git a/dist/index.js b/dist/index.js index 6f5591f..983bb2a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12194,6 +12194,7 @@ async function setUpAutoCache() { await fs$2.mkdir(`${process.env["HOME"]}/.config/nix`, { recursive: true }); const nixConf = openSync(`${process.env["HOME"]}/.config/nix/nix.conf`, 'a'); writeSync(nixConf, `${"\n"}extra-substituters = http://${coreExports.getInput('listen')}/?trusted=1&compression=zstd¶llel-compression=true${"\n"}`); + writeSync(nixConf, `fallback = true${"\n"}`); close(nixConf); coreExports.debug('Launched Magic Nix Cache'); coreExports.exportVariable(ENV_CACHE_DAEMONDIR, daemonDir); diff --git a/src/index.ts b/src/index.ts index 14db8ad..f520378 100644 --- a/src/index.ts +++ b/src/index.ts @@ -127,6 +127,7 @@ async function setUpAutoCache() { await fs.mkdir(`${process.env["HOME"]}/.config/nix`, { recursive: true }); const nixConf = openSync(`${process.env["HOME"]}/.config/nix/nix.conf`, 'a'); writeSync(nixConf, `${"\n"}extra-substituters = http://${core.getInput('listen')}/?trusted=1&compression=zstd¶llel-compression=true${"\n"}`); + writeSync(nixConf, `fallback = true${"\n"}`); close(nixConf); core.debug('Launched Magic Nix Cache');