mirror of
https://github.com/cachix/install-nix-action.git
synced 2024-12-22 15:03:28 +00:00
build
This commit is contained in:
parent
645ab54feb
commit
7f8f39bf55
1 changed files with 3 additions and 1 deletions
|
@ -24,11 +24,13 @@ const fs_1 = require("fs");
|
|||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
// rest of the constants
|
||||
const home = os_1.homedir();
|
||||
const { username } = os_1.userInfo();
|
||||
const PATH = process.env.PATH;
|
||||
const CERTS_PATH = home + '/.nix-profile/etc/ssl/certs/ca-bundle.crt';
|
||||
// Workaround a segfault: https://github.com/NixOS/nix/issues/2733
|
||||
yield exec.exec("sudo", ["mkdir", "-p", "/etc/nix"]);
|
||||
yield exec.exec("sudo", ["echo", "http2 = false", ">>", "/etc/nix/nix.conf"]);
|
||||
// TODO: retry due to all the things that go wrong
|
||||
const nixInstall = yield tc.downloadTool('https://nixos.org/nix/install');
|
||||
yield exec.exec("sh", [nixInstall]);
|
||||
|
|
Loading…
Reference in a new issue