Add Support for Darwin/macOS Hosts#438
Conversation
| ) | ||
| config.channels; | ||
|
|
||
| hostDefaults = flake-utils-plus.lib.mergeAny (stripHost config.nixos.hostDefaults) { |
There was a problem hiding this comment.
|
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 |
e8423ee to
0e50233
Compare
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]>
d282cd5 to
2dbbe20
Compare
bcf1acf to
dc86f3a
Compare
0e57f15 to
4547745
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.
413a73e to
f5f1e2d
Compare
|
@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. |
nix-darwin/nix-darwin#429 was merged recently, providing the top-level `lib` option
1c39bc2 to
64bd638
Compare
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
hmOnlygroupByConfigdevosDarwinia.tests = [ allProfiles ]ingroupByConfigexampledevosexample for compatibilityMiscellaneous/Cleanup
liboption (see https://github.com/divnix/digga-old/pull/111#issuecomment-1014661785)liboption based on NixOS nix-darwin/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*diggainputs to releaseNotes
fup-adapter.nixto 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.