summaryrefslogtreecommitdiff
path: root/modules/examples/flake/flake.nix
AgeCommit message (Collapse)Author
2025-01-14{readme,examples/flake}: update for release branchesEmily
2024-11-21examples: change default architecture to `aarch64-darwin`Michael Hoang
2024-11-17treewide: remove `nix.package` exampleMichael Hoang
2024-11-16treewide: remove mentions of `services.nix-daemon.enable = true;`Michael Hoang
2024-11-09docs: use `nix-darwin` instead of `Darwin`Michael Hoang
2024-10-31zsh: enable by default as zsh is the default shell on macOSMichael Hoang
Historically this was a footgun because users would not always have this enabled leading to `darwin-rebuild` and other programs not being found.
2024-09-11{ids,checks}: update for new builder UID/GID valuesEmily
2023-07-14Add `darwin-version` commandMichael Hoang
2023-07-12flake: use `nix-darwin` instead of `darwin`Michael Hoang
2023-07-11readme: update with new flaky instructionsMichael Hoang
2023-07-09eval-config: rationalize handling of NixpkgsEmily
This is a big change that disentangles a lot of mistaken assumptions about mixing multiple versions of Nixpkgs, treating external flake inputs as gospel for the source of Nixpkgs and nix-darwin, etc.; the end result should be much simpler conceptually, but it will be a breaking change for anyone using `eval-config.nix` directly. Hopefully that shouldn't be a big issue, as it is more of an internal API and it's quite likely that existing uses may have been broken in the same way the internal ones were. It was previously easy to get into a state where your `lib` comes from nix-darwin's `nixpkgs` input or a global channel and your `pkgs` comes from another major version of Nixpkgs. This is pretty fundamentally broken due to the coupling of `pkgs` to its corresponding `lib`, but the brokenness was hidden much of the time until something surfaced it. Now there is exactly one mandatory `lib` input to system evaluation, and the handling of various additional options like `pkgs` and `system` can be done modularly; maintaining backwards compatibility with the previous calling convention is punted to the `default.nix` and `lib.darwinSystem` entry points. `inputs` is no longer read by nix-darwin or special in any way, merely a convention for user code, and the argument is retained in the entry points only for backwards compatibility. All correct invocations of the entry points should keep working after this change, and some previously-broken ones should be fixed too. The documentation and template have been adjusted to show the newly-recommended modular way of specifying various things, but no deprecation warnings have been introduced yet by this change. There is one potential, mostly cosmetic regression: `system.nixpkgsRevision` and related options are less likely to be set than before, in cases where it is not possible to determine the origin of the package set. Setting `nixpkgs.source` explicitly will make this work again, and I hope to look into sending changes upstream to Nixpkgs to make `lib.trivial.revisionWithDefault` behave properly under flakes, which would fix this regression and potentially allow reducing some of the complexity. Fixes: #669
2023-06-17templates.flake: add contents of simple.nixMichael Hoang
2023-06-17flake: add template with basic flake configMichael Hoang