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
Domen Kožar
16c9343b25
move installer into a separate file
2022-01-11 14:14:42 +01:00
Travis A. Everett
94c3e407dd
fix dependence on apfs.util exit code
...
apfs.util (or at least it's newer -t flag) has bad exit code semantics
and will return non-zero codes for both success and errors.
Closes #401 and most-likely fixes #378 as well
2021-12-21 10:07:23 -06:00
Daiderd Jordan
8834df4317
installer: silence apfs.util output
...
Passing incorrect flags prints help output to stdout so silence
everything.
Fixes #264
2020-12-22 10:14:02 +01:00
Daiderd Jordan
f8a04c7f6d
installer: move channel setup out of activation
...
Fixes #234
2020-12-21 14:23:25 +01:00
Daiderd Jordan
6dd655466d
installer: remove profile step
2020-12-19 12:38:06 +01:00
Daiderd Jordan
75cab75c22
installer: ensure /etc/static runs last
...
In the case that nix-darwin was installed for a single user installation
and later nix gets reinstalled with the daemon it's possible that
nix-daemon.sh loads afterwards, resulting in unexpected behaviour.
2020-12-18 14:53:08 +01:00
Daiderd Jordan
c6f44ea7ff
installer: handle apfs.util on macOS 11.0 Big Sur
...
The flages of apfs.util changed in 11.0 so try both cases.
Fixes #249
2020-11-15 15:17:13 +01:00
Daiderd Jordan
47fe6db9c9
darwin-installer: configure zsh
2020-06-17 19:37:33 +02:00
Daiderd Jordan
80a8a591a9
installer: try creating /run using synthetic.conf
...
Since macOS 10.15 Catalina / can't be changed directly anymore.
Fixes #166
2020-03-28 19:12:21 +01:00
Daiderd Jordan
132a7f0a09
users: increase default nixbld users to 32 and set knownUsers by default
...
Since the users.nix.configureBuildUsers target nixbld users, don't require
them to be added to knownUsers explicitly.
2019-02-21 23:15:09 +01:00
Daiderd Jordan
34a6eca033
Revert "installer: add NIX_PATH fallback in <darwin> lookup"
...
This reverts commit 06f8d83f60
.
2018-10-27 00:14:38 +01:00
Daiderd Jordan
06f8d83f60
installer: add NIX_PATH fallback in <darwin> lookup
...
The nix.nixPath option doesn't include everything, some paths are added
dynamically now.
2018-10-26 17:09:19 +01:00
Daiderd Jordan
75add386d3
installer: prefer nix from default profile
...
Using a nix 2.1 nix-channel/nix-env with a 2.0 nix-daemon doesn't work
because the buildenv implementation was moved to the daemon. This means
the nix version of the target darwin system can't be used because the
daemon isn't upgraded yet.
error: unsupported builtin function 'buildenv'
2018-09-14 22:29:08 +02:00
Daiderd Jordan
c2728318fb
installer: add post check
2018-01-17 21:31:47 +01:00
Daiderd Jordan
d31dbefca7
installer: configure build users
2018-01-14 17:18:10 +01:00
Daiderd Jordan
d107dfbc3a
installer: move /run creation
2018-01-14 16:07:46 +01:00
Daiderd Jordan
977ed04a60
installer: setup /run
2018-01-13 23:33:27 +01:00
Daiderd Jordan
32481b542b
installer: init
2018-01-13 23:33:27 +01:00