Skip to content
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

Closed
wants to merge 1 commit into from
Closed

Clarify Linux requirement in README (macOS seems unsupported) #1483

wants to merge 1 commit into from

Conversation

JanCVanB
Copy link

@JanCVanB JanCVanB commented Nov 5, 2021

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

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
@roberth
Copy link
Member

roberth commented Nov 5, 2021

Did you try setting up a remote builder in a VM to build for linux?
like https://github.com/nix-community/linuxkit-nix
or https://github.com/LnL7/nix-docker#running-as-a-remote-builder

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.

@JanCVanB
Copy link
Author

JanCVanB commented Nov 6, 2021

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.

@JanCVanB JanCVanB changed the title Clarify Linux requirement in README Clarify Linux requirement in README (macOS seems unsupported) Nov 6, 2021
@roberth
Copy link
Member

roberth commented Nov 6, 2021

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.

@JanCVanB
Copy link
Author

JanCVanB commented Nov 7, 2021

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).

@JanCVanB
Copy link
Author

JanCVanB commented Nov 7, 2021

I tried following the other repo's instructions here, but the daemon also wouldn't start. It looks like that repo is also unmaintained.

@JanCVanB
Copy link
Author

JanCVanB commented Nov 7, 2021

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?

@roberth
Copy link
Member

roberth commented Nov 16, 2021

UTM is another alternative. It lets you run NixOS like you would on a physical machine. It's qemu underneath.
Plenty of other virtualization options exist too.

would it be accurate to say that NixOps doesn't support macOS?

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.
I've updated the README with some minimal info. Perhaps you could add to it with information about your own linux builder setup?
EDIT: I'd really like to guide you through it, but don't have the time now.

@roberth
Copy link
Member

roberth commented Jul 5, 2022

This isn't actionable now and the linux builder is more of an issue for the nix installer or nix-darwin to solve.

@roberth roberth closed this Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants