-
Notifications
You must be signed in to change notification settings - Fork 107
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 Support for Darwin/macOS Hosts #438
Conversation
@@ -75,14 +126,10 @@ let | |||
) | |||
config.channels; | |||
|
|||
hostDefaults = flake-utils-plus.lib.mergeAny (stripHost config.nixos.hostDefaults) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm now using I'm not yet making use of the home-manager profiles because currently my "user" profiles are laced with a lot of system-scoped config, among other oddities. It's a work in progress. So with that, I've checked off the "Test on a real Apple computer to manage a real system configuration" task. There's a few more to go but it feels like this is getting pretty close to done 😸 Next up, I'll be taking a look into the DevOS example and identifying what might need updating there. |
Wow thats amazing :) This is indeed looking close to being done! You should add your flake to the "In the Wild" section in the README |
441: fix: use gnu sed in shell tests for cross-platform compatibility r=montchr a=montchr Darwin's use of BSD `sed` breaks here because BSD `sed` has a different argument signature. Spun off from #438 as suggested in #438 (comment) Co-authored-by: Chris Montgomery <[email protected]>
441: fix: use gnu sed in shell tests for cross-platform compatibility r=montchr a=montchr Darwin's use of BSD `sed` breaks here because BSD `sed` has a different argument signature. Spun off from #438 as suggested in #438 (comment) Co-authored-by: Chris Montgomery <[email protected]>
bcf1acf
to
dc86f3a
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
cddc1fc
to
3424505
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
@bjw-s I've force-pushed some updates to this branch, which includes a fix for the issue you ran into while building the example host. |
@Pacman99 I think this is ready to merge, aside from rebuilding my nix-darwin system with the latest from this branch, in addition to addressing your suggestion:
What did you have in mind exactly? Since the examples have all been updated for compatibility with this branch, pinning them to the previous version would break, right? Also feel free to push commits to this branch or open a PR against it. I don't plan on making any more force-pushes at this point so let's consider the history stable. |
Thanks for the update! I can confirm that I am able to get
My repo is here, should that provide any additional insight. Edit: I've found this gist (through this NixOS forum post) where the author is overriding the package arch, but unfortunately I have no idea how I would port this to the devos structure. |
If it helps narrow it down, I get the same |
that error seems to comes from gytis-ivaskevicius/flake-utils-plus#113 I've been facing the same issue for days while using |
Yeah I'm good with merging this directly. I guess I was thinking of a way to encourage people to use the release tag for digga, instead of main. But its fine, the checks pass in this branch and the code all looks good so it should be stable. |
LnL7/nix-darwin#429 was merged recently, providing the top-level `lib` option
the version in the 21.11 channel is old and doesn't include support for `aarch64-darwin`. this version does.
Looks like this is fixed in nix-community/nix-index@0634333 which is not available in the version of
As an overlay, it could be added directly to digga/examples/devos/flake.nix Line 81 in e6b14d3
Or you could, for example, create a file in the I don't have a sense of how common a scenario like the one you ran into with |
@bjw-s @grimsleydl @kid Assuming that the issue is coming from gytis-ivaskevicius/flake-utils-plus#113 do either of these fixes help? |
Thank you for the amazing work @montchr!! Glad to see Darwin support become a reality. |
Thanks for the support! It's been a journey. |
Redo of https://github.com/divnix/digga-old/pull/111
Fixes #440 (used to be divnix/digga-old#16)
TODO
hmOnly
groupByConfig
devos
Darwinia.tests = [ allProfiles ]
ingroupByConfig
exampledevos
example for compatibilityMiscellaneous/Cleanup
lib
option (see https://github.com/divnix/digga-old/pull/111#issuecomment-1014661785)lib
option based on NixOS LnL7/nix-darwin#429 is merged before this PR is ready to go, then update the input URL to point back to the upstream reponix build .#mkApiReference*
digga
inputs to releaseNotes
fup-adapter.nix
to make it easier to debug. So there may be some opportunity for introducing some abstractions in that file down the line, but for now I'd like to keep things less complex through repetition.