NixOS-based container for running GitHub actions
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

get nix daemon working

+17 -1
+2
build.zig
··· 62 62 break :tail try std.fs.path.join(b.allocator, &.{ dir, "tail" }); 63 63 }; 64 64 const nix = b.option([]const u8, "nix", "real nix binary") orelse try find(b, "nix"); 65 + const nix_daemon = b.option([]const u8, "nix-daemon", "real nix-daemon binary") orelse try find(b, "nix-daemon"); 65 66 const bash = b.option([]const u8, "bash", "real bash binary") orelse try find(b, "bash"); 66 67 const sh = sh: { 67 68 const sh = b.option([]const u8, "sh", "real sh binary") orelse try find(b, "sh"); ··· 86 87 options.addOption([]const u8, "homedir", homedir); 87 88 options.addOption([]const u8, "tail", tail); 88 89 options.addOption([]const u8, "nix", nix); 90 + options.addOption([]const u8, "nix_daemon", nix_daemon); 89 91 options.addOption([]const u8, "bash", bash); 90 92 options.addOption([]const u8, "sh", sh); 91 93
+13
flake.nix
··· 119 119 pkgs.gzip 120 120 pkgs.iputils 121 121 pkgs.less 122 + pkgs.lsof 122 123 pkgs.more 123 124 pkgs.nix 124 125 pkgs.nodejs_25 ··· 574 575 let 575 576 program = pkgs.writeShellScriptBin "program" '' 576 577 ${pkgs.lib.getExe pkgs.reuse} lint 578 + ''; 579 + in 580 + { 581 + type = "app"; 582 + program = "${pkgs.lib.getExe program}"; 583 + }; 584 + server = 585 + let 586 + program = pkgs.writeShellScriptBin "program" '' 587 + ${pkgs.lib.getExe pkgs.nix} build -L .#nixos-runner 588 + ${pkgs.lib.getExe pkgs.podman} load < result 589 + ${pkgs.lib.getExe pkgs.podman} run --rm -it -e CI=true -e GITHUB_ACTIONS=true --entrypoint='["tail", "-f", "/dev/null"]' localhost/nixos-runner:latest 577 590 ''; 578 591 in 579 592 {
+1
package.nix
··· 29 29 "-Dhomedir=${homedir}" 30 30 "-Dtail=${lib.getExe' coreutils-full "tail"}" 31 31 "-Dnix=${lib.getExe' nix "nix"}" 32 + "-Dnix-daemon=${lib.getExe' nix "nix-daemon"}" 32 33 "-Dbash=${lib.getExe' bashInteractive "bash"}" 33 34 "-Dsh=${lib.getExe' bashInteractive "sh"}" 34 35 ];
+1 -1
src/tail.zig
··· 31 31 std.process.setCurrentDir(io, dir) catch break :cwd; 32 32 } 33 33 34 - try lib.exec(init.gpa, options.nix, &.{ "nix", "daemon" }, &environ_map); 34 + try lib.exec(init.gpa, options.nix_daemon, &.{ "nix-daemon", "--daemon" }, &environ_map); 35 35 // const err = std.process.replace(io, .{ 36 36 // .argv = &.{ 37 37 // options.nix,