-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Clarify Linux requirement in README (macOS seems unsupported) #1483
Conversation
As a Nix(Ops) noob, this was particularly confusing - I assumed that since Nix supports macOS that NixOps would also support macOS. However, that does not seem to be true*. I think that adding a relevant note to the README will protect some future noobs from this confusion. *Sources: #260 #560 #1027 #412
Did you try setting up a remote builder in a VM to build for linux? I would expect deployment to cloud vms and existing machines to work. It may not be optimal (#560) or to a local vbox (#1027), but there should be no reason for it not to work altogether when deploying from a mac. |
I haven't tried those solutions, but if they are indeed the intended path for macOS users then we should add those links to the README instead. The NixOps User Guide doesn't contain any reference to "macOS" or "remote builder", and those linked repos' READMEs only mention NixOps once (in passing) between the two of them. |
A linux builder is the best solution. In theory there could be other options, like cross compilation or building on the target, but those are sub-optimal to say the least. Not worth pursuing. |
I tried using https://github.com/nix-community/linuxkit-nix, but the daemon wouldn't run for me on macOS 12 (Monterey). It looks like the repo is unmaintained and hasn't worked since macOS 10 (Catalina). |
I tried following the other repo's instructions here, but the daemon also wouldn't start. It looks like that repo is also unmaintained. |
If there were no maintained first-party or third-party workarounds for macOS, then would it be accurate to say that NixOps doesn't support macOS? |
UTM is another alternative. It lets you run NixOS like you would on a physical machine. It's qemu underneath.
Technically, setting up a remote builder is a distinct activity that isn't the responsibility of NixOps. There's no inherent limitation that prevents NixOps from running on macOS, so saying that it is not supported would not be accurate. |
This isn't actionable now and the linux builder is more of an issue for the nix installer or nix-darwin to solve. |
As a Nix(Ops) noob, this was particularly confusing - I assumed that since Nix supports macOS that NixOps would also support macOS. However, that does not seem to be true*. I think that adding a relevant note to the README will protect some future noobs from this confusion.
*Sources:
#260
#560
#1027
#412