Draft
Comprehensive nix-Darwin support assessment and implementation roadmap#3
Conversation
Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
Co-authored-by: Jyumpp <11142390+Jyumpp@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor to support nix-Darwin configurations
Comprehensive nix-Darwin support assessment and implementation roadmap
Dec 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provides production-ready technical assessment for extending nixos-systems to support nix-Darwin configurations alongside existing NixOS infrastructure.
Problem Statement
User asked: "Without doing it, how much work would it take to refactor to also support nix-Darwin configurations?"
Deliverables
Main Assessment (DARWIN_SUPPORT_ASSESSMENT.md)
20+ page technical analysis covering:
Supporting Documentation
docs/DARWIN_QUICK_REFERENCE.md- TL;DR with implementation checklistdocs/darwin-architecture.md- Visual architecture diagrams (current vs proposed)docs/IMPLEMENTATION_SUMMARY.md- Executive summaryExample Implementations (docs/darwin-examples/)
Complete working examples demonstrating:
Key examples:
Key Technical Changes Required
Host Generation (1-2 days) - Refactor
hosts/default.nix:if darwin then mkDarwinHost else mkNixOSHostnixosConfigurations+darwinConfigurationsModule Structure (2-3 hours) - Separate platform-specific config:
common.nix→linux-common.nix(boot, disko, systemd)darwin-common.nix(system.defaults, launchd, no boot config)Software Profiles (1-2 days) - Platform detection in
sw/:lib.optionals stdenv.isLinux [kde...]Host Types (1 day) - Create
hosts/types/darwin-*.nix:Architecture Assessment
Feasibility: ✅ Recommended - existing structure well-suited for extension
Risk: Low - changes are additive and isolated, no breaking changes to NixOS configs
Complexity: Medium-high due to systemd→launchd translation and dual-platform testing requirements
Updated
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.