{"id":16334404,"url":"https://github.com/cmacrae/flakelight-darwin","last_synced_at":"2026-04-29T15:38:03.686Z","repository":{"id":225130678,"uuid":"764789766","full_name":"cmacrae/flakelight-darwin","owner":"cmacrae","description":"A Darwin module for flakelight","archived":false,"fork":false,"pushed_at":"2024-04-30T12:05:26.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-01T13:45:55.995Z","etag":null,"topics":["macos","nix","nix-darwin","nix-flake"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmacrae.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-28T18:02:23.000Z","updated_at":"2024-05-07T13:27:01.487Z","dependencies_parsed_at":"2024-02-29T13:15:44.530Z","dependency_job_id":"6caa9551-9dff-4c6a-aae9-36d89101da50","html_url":"https://github.com/cmacrae/flakelight-darwin","commit_stats":null,"previous_names":["cmacrae/flakelight-darwin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmacrae%2Fflakelight-darwin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmacrae%2Fflakelight-darwin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmacrae%2Fflakelight-darwin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmacrae%2Fflakelight-darwin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmacrae","download_url":"https://codeload.github.com/cmacrae/flakelight-darwin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239321400,"owners_count":19619697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","nix","nix-darwin","nix-flake"],"created_at":"2024-10-10T23:38:19.173Z","updated_at":"2025-11-01T20:30:26.707Z","avatar_url":"https://github.com/cmacrae.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flakelight-darwin\n\nA [nix-darwin][1] module for [flakelight][2].\n\n[1]: https://github.com/LnL7/nix-darwin\n[2]: https://github.com/nix-community/flakelight\n\n## About\nProvides integration for `darwinConfigurations` \u0026 `darwinModules` into your flakelight config, like so:\n```nix\n{\n  inputs = {\n    flakelight.url = \"github:nix-community/flakelight\";\n    flakelight-darwin.url = \"github:cmacrae/flakelight-darwin\";\n  };\n  outputs = { flakelight, flakelight-darwin, ... }: flakelight ./. {\n    imports = [ flakelight-darwin.flakelightModules.default ];\n    darwinConfigurations.example = {\n      system = \"aarch64-darwin\";\n      modules = [{ system.stateVersion = 4; }];\n    };\n  };\n}\n```\n\nThis mimics the expression of `nixosConfigurations` \u0026 `nixosModules` found in flakelight. Thus it benefits\nfrom the same [directory][3] and [module(s)][4] conventions, such that:\n- you can track your `darwinConfigurations` \u0026 `darwinModules` in directories, named `darwin` \u0026 `darwinModules`\n- singular modules expressed directly (`darwinModule = { ... }`) yield the `default` attribute\n- module declarations can point to paths\n\n[3]: https://github.com/nix-community/flakelight/blob/master/API_GUIDE.md#nixdir\n[4]: https://github.com/nix-community/flakelight/blob/master/API_GUIDE.md#nixosmodules-homemodules-and-flakelightmodules\n\nFor further guidance, consult [flakelight's excellent API guide][5] and note the documentation on `nixosConfigurations` \n\u0026 `nixosModules`, wherein you can substitute `darwinConfigurations` \u0026 `darwinModules`\n\n[5]: https://github.com/nix-community/flakelight/blob/master/API_GUIDE.md\n\n## Getting Started\nThere are two [example templates](templates) provided\n\n### [`basic`](templates/basic)\nProvides a minimal example Darwin system declaration, directly in `flake.nix`.  \n\nInstantiate your own with:\n```\nnix flake init -t github:cmacrae/flakelight-darwin\n```\n\n### [`autoload`](templates/autoload)\nProvides an example configuration comprised of multiple Darwin system declarations, importing an `example` module, represented in a directory structure:\n```\n.\n├── flake.nix\n└── nix\n    ├── darwin\n    │   ├── host1\n    │   │   ├── configuration.nix\n    │   │   └── default.nix\n    │   └── host2\n    │       ├── configuration.nix\n    │       └── default.nix\n    └── darwinModules\n        └── example.nix\n```\n\nInstantiate your own with:\n```\nnix flake init -t github:cmacrae/flakelight-darwin#autoload\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmacrae%2Fflakelight-darwin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmacrae%2Fflakelight-darwin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmacrae%2Fflakelight-darwin/lists"}