1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-21 09:59:18 +03:00
Commit Graph

33 Commits

Author SHA1 Message Date
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
943a6b25d7
Merge pull request #215 from basvandijk/installer-correct-referencees
darwin-[un]installer: make sure all dependencies are part of the closure
2020-08-26 18:21:07 +02:00
Alexandre Esteves
a6f47f87f1
Fix typo 2020-08-26 13:19:51 +01:00
Bas van Dijk
03d3931656 darwin-[un]installer: make sure all dependencies are part of the closure
This makes sure the `darwin-installer` and `darwin-uninstaller`
packages can be nix copied to any target and reliably be executed
there.
2020-08-21 21:22:09 +02:00
Daiderd Jordan
47fe6db9c9
darwin-installer: configure zsh 2020-06-17 19:37:33 +02:00
James Ottaway
32fa78821f Only enable services.nix-daemon when no config is present upon install 2020-05-17 21:58:35 +10: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
3ec36dd667
darwin-installer: add missing shebang
Unclear in which conditions this does or doesn't work but using a
shebang is best practice and ensures an ancient version of bash isn't
used.

Fixes #179
2019-12-14 18:13:33 +01:00
Daiderd Jordan
462a17b1f1
installer: detect multi-user install 2019-07-01 23:02:29 +02:00
Domen Kožar
48a9159b35
darwin-installer: use --show-trace
This saved me some debugging
2019-06-25 19:50:37 +02: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
63dfbc93d5
installer: include channels in bootstrap NIX_PATH 2018-10-26 17:47:45 +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
79d356909b
installer: don't use pure PATH for editor
For the rest of the installer we want to make sure nothing installed by
the user interferes, however a user's editor might be installed
anywhere.
2018-10-26 09:10:28 +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
a893723b95
activation: fix missing /sbin entries in PATH 2018-08-01 21:08:13 +02:00
Kirill Elagin
45f0e832cd fixup! installer and activation: Sanitise PATH 2018-06-29 19:05:57 +03:00
Kirill Elagin
26bab2fd32 installer and activation: Sanitise PATH
This makes sure that the installation and activation processes are “pure”,
i.e. they use only binaries from nixpkgs or ones that come with macOS.

Closes #86.
2018-06-29 18:51:41 +03:00
Kirill Elagin
2fec230ccc installer: Bring our own nix-instantiate 2018-06-29 15:15:35 +03:00
Daiderd Jordan
49b899dd97
installer: make configuration writable
If the installer is built from a channel or url the example is copied
from the store and won't have write permissions.
2018-04-14 00:28:11 +02:00
Daiderd Jordan
6f1c1049dd
installer: fallback to a default editor 2018-01-24 22:37:40 +01:00
Daiderd Jordan
c2728318fb
installer: add post check 2018-01-17 21:31:47 +01:00
Daiderd Jordan
64a46b7164
uninstaller: add header 2018-01-16 00:58:13 +01:00
Daiderd Jordan
02725e220a
installer: fix editor check 2018-01-16 00:58:12 +01:00
Daiderd Jordan
ac238d0323
installer: ask to edit configuration before installing
This is skipped when stdin is not a tty, unlike the other interactive
parts that look at stdout.
2018-01-14 19:08:02 +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
850dc95145
installer: fix patch 2018-01-14 16:07:46 +01:00
Daiderd Jordan
977ed04a60
installer: setup /run 2018-01-13 23:33:27 +01:00
Daiderd Jordan
9dd2d679cb
installer: add --check flag 2018-01-13 23:33:27 +01:00
Daiderd Jordan
32481b542b
installer: init 2018-01-13 23:33:27 +01:00