-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions for self-hosted NixOS runners #42
Comments
I understand you want to keep your actions the same, and presumably you don't actually want our installer to install Nix. Despite that, can you check to see if Next... what behavior would you like and expect out of this action when Nix is already installed / you're already on NixOS? |
I think what I'm asking for might be either impossible or unwise without placing the runner inside a container. I tried just adding What about making the action check whether Nix is already installed/available, and do nothing in that case? |
Ah, so it is trying to run |
Sounds good, please redeem this beer ticket next time we meet: 🎟️ |
So we've done some work already to detect an existing Nix install, but it is really only looking for a Nix installed by the Determinate Nix Installer: async detect_existing(): Promise<boolean> {
const receipt_path = "/nix/receipt.json";
try {
await access(receipt_path);
// There is a /nix/receipt.json
return true;
} catch {
// No /nix/receipt.json
return false;
}
} I think we could add a second check there, like look to see if you're on NixOS or if the |
That sounds good, I guess checking whether things are enabled is just |
I believe there are two issues at play here. I'm going to try to tease them apart. Issue 1: Installer requires
|
I attempted the following:
But this action failed: https://github.com/lovesegfault/nix-config/actions/runs/6496771196/job/17644474420
I could just guard the action with an
if
, and expose the host's Nix to the runner, but I wanted to keep things identical to the GitHub-hosted runners, if at all possible.Error
Metadata
The text was updated successfully, but these errors were encountered: