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

202 commits

Author SHA1 Message Date
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
Daiderd Jordan
ef3d6e4354
lnl: remove default sandbox 2019-07-29 21:28:35 +02:00
Daiderd Jordan
21c2ffdda9
lnl: remove chunkwm dummy 2019-07-29 21:28:35 +02:00
Domen Kožar
bb91a4d6c3
SSL_CERT_FILE -> NIX_SSL_CERT_FILE 2019-05-17 10:22:22 +07:00
Daiderd Jordan
3da5c1a322
lnl: open up per-user paths in sandbox 2019-05-04 18:37:21 +02:00
Daiderd Jordan
58aa5bf185
nix: make nix.nixPath merge by default
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-05-01 12:42:31 +02:00
Daiderd Jordan
13f2480374
lnl: update reexec aliases 2019-03-20 20:51:35 +01:00
Daiderd Jordan
0a8785c61b
lnl: start tmux panes in a sandbox by default 2019-02-16 21:33:17 +01:00
Daiderd Jordan
1464d9efd3
lnl: sandbox fetch-nixpkgs-updates service 2019-02-16 17:47:29 +01:00
Daiderd Jordan
10c34f1277
lnl: add tmp and var/tmp to sandbox paths 2019-02-12 23:23:04 +01:00
Daiderd Jordan
e61dcc1024
lnl: (re)enable sandboxing with extra-sandbox-paths
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-02-12 20:25:29 +01:00
Daiderd Jordan
655b66975f
lnl: disable cachix 2019-01-16 22:38:54 +01:00
Daiderd Jordan
61e30229cc
lnl: cleanup and configure nixbld users 2019-01-07 20:18:03 +01:00
Daiderd Jordan
7f4a9ecb4d
lnl: add nix-daemon objc workaround 2018-12-18 23:32:18 +01:00