summaryrefslogtreecommitdiff
path: root/modules/examples
AgeCommit message (Collapse)Author
2024-07-24Add inline prediction option mirroring the capitalization option347Online | Katie Janzen
2024-01-27Add zsh completions to darwin-rebuld by defaultThane Gill
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
2022-09-25rename the nixFlakes referenceGraham Christensen
2022-09-25rename runCommandNoCCJames Walker
2022-08-25Fix copypasta in simple exampleJoshua Bronson
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2022-08-16Update `nix` module to use `settings` sub options like in NixOS moduleMalo Bourgon
Also update option definitions to match those in `nixpkgs` where it makes sense.
2022-05-07update example configDaiderd Jordan
2021-09-15improve flakes missing system error messageDaiderd Jordan
2021-09-08Pass system to darwinSystem rather than eval-config.Drew Hess
This allows us to specify what kind of darwinSystem we want to build, rather than determining it at evaluation time.
2021-03-26Adds `GITHUB_TOKEN` due to rate limitingThibault Gagnaux
2020-10-25don't set SHELL automatically based on programs.<shell>.enableDaiderd Jordan
2020-10-25lnl: cleanup example configDaiderd Jordan
2020-10-21switch example flake to masterDaiderd Jordan
2020-10-21add workaround for flake test on github actionsDaiderd Jordan
2020-10-21add example flake and support --flake in darwin-rebuildDaiderd Jordan
2020-10-19lnl: remove kittyDaiderd Jordan
2020-09-12lnl: remove gitconfig symlinkDaiderd Jordan
2020-06-17enable zsh in simple exampleDaiderd Jordan
2020-06-14lnl: fix evaluation and switch to neovimDaiderd Jordan
2020-06-11replace NIX_PATH references with regular pathsDaiderd Jordan
2020-05-30lnl: disable gnupg agent for secretiveDaiderd Jordan
2020-05-30lnl: update functionsDaiderd Jordan
2020-05-30lnl: update fetch-nixpkgsDaiderd Jordan
2020-05-30lnl: fix min-free/max-free valuesDaiderd Jordan
2020-05-30nix: better defaults settings for maxJobs/buildCoresJörg Thalheim
most users just want to use all available cores. This commit aligns our defaults with what we do in NixOS
2020-05-29system: cleanup patches activationDaiderd Jordan
2020-03-29Rename programs.tmux.tmuxConfig -> extraConfigJason Felice
2020-02-29lnl: updateDaiderd Jordan
2019-09-24lnl: load :u packages in current instead of a subshellDaiderd Jordan
2019-07-29lnl: remove default sandboxDaiderd Jordan
2019-07-29lnl: remove chunkwm dummyDaiderd Jordan
2019-05-17SSL_CERT_FILE -> NIX_SSL_CERT_FILEDomen Kožar
2019-05-04lnl: open up per-user paths in sandboxDaiderd Jordan
2019-05-01nix: make nix.nixPath merge by defaultDaiderd Jordan
Since named entries can be overridden now based on ordering now merging is only a problem for removing one of the default search paths, in which case a higher priority eg. mkForce can be used. { nix.nixPath = [{ darwin-config = "/darwin.nix"; }]; } Will result in [ "darwin-config=/darwin.nix" "/nix/var/nix/profiles/per-user/root/channels" "$HOME/.nix-defexpr/channels" ] Fixes #137
2019-03-20lnl: update reexec aliasesDaiderd Jordan
2019-02-16lnl: start tmux panes in a sandbox by defaultDaiderd Jordan
2019-02-16lnl: sandbox fetch-nixpkgs-updates serviceDaiderd Jordan
2019-02-12lnl: add tmp and var/tmp to sandbox pathsDaiderd Jordan
2019-02-12lnl: (re)enable sandboxing with extra-sandbox-pathsDaiderd Jordan
There are still some problems with frameworks, this opens up the sandbox enough by default to work around that and make it work like expected in most cases.
2019-01-16lnl: disable cachixDaiderd Jordan
2019-01-07lnl: cleanup and configure nixbld usersDaiderd Jordan
2018-12-18lnl: add nix-daemon objc workaroundDaiderd Jordan
2018-12-18lnl: fix reexec aliasesDaiderd Jordan