1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
Commit graph

215 commits

Author SHA1 Message Date
Michael Hoang
a4d4d12e38 examples: change default architecture to aarch64-darwin 2024-11-21 11:07:47 +11:00
Michael Hoang
9a1bea70d5 installer: move creating default configuration to README 2024-11-21 11:07:47 +11:00
Michael Hoang
7918e24e5b treewide: remove nix.package example 2024-11-17 01:11:27 +11:00
Michael Hoang
5d1b7ac696 treewide: remove mentions of services.nix-daemon.enable = true; 2024-11-16 23:19:11 +11:00
Michael Hoang
534ca06930 docs: use nix-darwin instead of Darwin 2024-11-09 21:51:15 +11:00
Michael Hoang
2af06b0862 examples: clean up 2024-11-07 15:26:53 +11:00
Michael Hoang
c13549d7a6 examples: drop ofborg example
We decided to drop this example as the package is not available in
Nixpkgs and we won't be able to import it easily and keep this example
evaluating as a useful smoke test. The code in this example is already
documented under `services.ofborg.*` so any interested users can still
find out how to set up `ofborg`.
2024-11-07 15:24:16 +11:00
Michael Hoang
569153467b ofborg: automatically add ofborg to known{Users,Groups} 2024-11-07 11:41:51 +11:00
Michael Hoang
dd48cbd776 examples: fix evaluation 2024-11-07 11:41:51 +11:00
Emily
f203352cc0
Merge pull request #1135 from Enzime/push-lxwqqpssklyn
environment: remove misleading `environment.loginShell` option
2024-11-02 22:23:10 +00:00
Michael Hoang
63f4d40e55 tmux: remove programs.tmux.defaultCommand 2024-10-31 16:00:03 +11:00
Michael Hoang
470f87c182 zsh: enable by default as zsh is the default shell on macOS
Historically this was a footgun because users would not always have this
enabled leading to `darwin-rebuild` and other programs not being found.
2024-10-31 15:09:11 +11:00
isabel
c9fd4820d5
programs/bash: move to completion.*
a port of https://github.com/NixOS/nixpkgs/pull/291552 for darwin
2024-10-08 10:05:26 +01:00
Emily
88b97aa49c {ids,checks}: update for new builder UID/GID values 2024-09-11 01:17:01 +01:00
347Online | Katie Janzen
be14a2add1 Add inline prediction option mirroring the capitalization option 2024-07-24 12:51:20 -05:00
Thane Gill
0f0478efa6 Add zsh completions to darwin-rebuld by default 2024-01-27 19:37:27 -08:00
Michael Hoang
0dafe2170d Add darwin-version command 2023-07-14 23:06:46 +10:00
Michael Hoang
4511c29a72 flake: use nix-darwin instead of darwin 2023-07-12 10:36:14 +10:00
Michael Hoang
22620845fe readme: update with new flaky instructions 2023-07-11 18:59:05 +10:00
Emily
f9724c4543 eval-config: rationalize handling of Nixpkgs
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-07-09 11:21:40 +01:00
Michael Hoang
f532e43f7e templates.flake: add contents of simple.nix 2023-06-17 22:57:44 +10:00
Michael Hoang
fc955520dd flake: add template with basic flake config 2023-06-17 22:09:38 +10:00
Graham Christensen
07f640580b rename the nixFlakes reference 2022-09-25 15:43:15 -04:00
James Walker
a2a9f30fee
rename runCommandNoCC 2022-09-25 14:12:08 -04:00
Joshua Bronson
05cab3fc91
Fix copypasta in simple example 2022-08-25 09:43:42 -04:00
Malo Bourgon
7e74c1c9fb Move build user options to nix module to improve overlap with NixOS
Also add `config.ids` like in NixOS.
2022-08-16 10:41:51 -07:00
Malo Bourgon
f729a09a28 Update nix module to use settings sub options like in NixOS module
Also update option definitions to match those in `nixpkgs` where it
makes sense.
2022-08-16 10:41:51 -07:00
Daiderd Jordan
2f2bdf658d
update example config 2022-05-07 11:33:56 +02:00
Daiderd Jordan
e1a3f7292f
improve flakes missing system error message 2021-09-15 20:22:23 +02:00
Drew Hess
9f7e95887f
Pass system to darwinSystem rather than eval-config.
This allows us to specify what kind of darwinSystem we want to build,
rather than determining it at evaluation time.
2021-09-08 13:05:18 +01:00
Thibault Gagnaux
dbddb3a1a6
Adds GITHUB_TOKEN due to rate limiting 2021-03-26 07:17:26 +01:00
Daiderd Jordan
079db5db5b
don't set SHELL automatically based on programs.<shell>.enable 2020-10-25 16:37:02 +01:00
Daiderd Jordan
dfe84e9203
lnl: cleanup example config 2020-10-25 12:17:48 +01:00
Daiderd Jordan
2a60ef1956
switch example flake to master 2020-10-21 18:47:44 +02:00
Daiderd Jordan
1741ab18a6
add workaround for flake test on github actions 2020-10-21 18:30:57 +02:00
Daiderd Jordan
d865c6ae4c
add example flake and support --flake in darwin-rebuild 2020-10-21 18:30:57 +02:00
Daiderd Jordan
849d527a15
lnl: remove kitty 2020-10-19 20:49:09 +02:00
Daiderd Jordan
828879f930
lnl: remove gitconfig symlink 2020-09-12 10:42:38 +02:00
Daiderd Jordan
7e278ba51a
enable zsh in simple example 2020-06-17 19:37:07 +02:00
Daiderd Jordan
2d6479b72e
lnl: fix evaluation and switch to neovim 2020-06-14 17:03:11 +02:00
Daiderd Jordan
78434e602d
replace NIX_PATH references with regular paths 2020-06-11 19:17:06 +02:00
Daiderd Jordan
eace013f6b
lnl: disable gnupg agent for secretive 2020-05-30 14:38:34 +02:00
Daiderd Jordan
6a3564296b
lnl: update functions 2020-05-30 14:38:33 +02:00
Daiderd Jordan
3d20a28b33
lnl: update fetch-nixpkgs 2020-05-30 14:38:33 +02:00
Daiderd Jordan
0ab3fab8b7
lnl: fix min-free/max-free values 2020-05-30 14:38:33 +02:00
Jörg Thalheim
eb7b41a2a0 nix: better defaults settings for maxJobs/buildCores
most users just want to use all available cores.
This commit aligns our defaults with what we do in NixOS
2020-05-30 02:14:06 +01:00
Daiderd Jordan
f55568ea4e
system: cleanup patches activation 2020-05-29 22:54:25 +02:00
Jason Felice
ff77fcadc2 Rename programs.tmux.tmuxConfig -> extraConfig 2020-03-29 13:58:58 -04:00
Daiderd Jordan
6a255bd47c
lnl: update 2020-02-29 23:49:53 +01:00
Daiderd Jordan
da52dc006c
lnl: load :u packages in current instead of a subshell 2019-09-24 00:27:53 +02:00