summaryrefslogtreecommitdiff
path: root/pkgs/darwin-installer
AgeCommit message (Collapse)Author
2024-11-21installer: removeMichael Hoang
2024-11-21installer: move channel creation to READMEMichael Hoang
2024-11-21installer: move creating default configuration to READMEMichael Hoang
2024-11-16nix-daemon: enable by defaultMichael Hoang
Single user installs have been unsupported by the official Nix installer since 2.4.
2024-11-09installer: don't tell users to source bashrcMichael Hoang
Fixes #380
2024-10-27tests: fix negative asserts with `grep` not workingMichael Hoang
Using `grep -v` without `-z` will return 0 even if there is a match found as all the non-matching lines will be matched. Instead of using `grep -vqz`, `(! grep ...)` is more readable. The brackets are necessary as `! grep` will not trigger `set -e`[0], so we run it inside a subshell to use its non-zero exit code. [0]: https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#The-Set-Builtin
2023-08-13Update pkgs/darwin-installer/default.nixArvin Sevilla
Co-authored-by: Michael Hoang <Enzime@users.noreply.github.com>
2023-08-13chore(installer): capitalize the default option when reading user inputArvin Sevilla
2023-07-11installer: match flaky installation logicMichael Hoang
2023-07-11Allow flaky installation with `darwin-rebuild`Michael Hoang
2023-06-09darwin-installer: fix `/run` not getting createdMichael Hoang
2022-08-16Add .nix-defexpr to NIX_PATH the way the NixOS module doesMalo Bourgon
2022-08-16Move build user options to `nix` module to improve overlap with NixOSMalo Bourgon
Also add `config.ids` like in NixOS.
2022-01-11move installer into a separate fileDomen Kožar
2021-12-21fix dependence on apfs.util exit codeTravis A. Everett
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-02-23darwin-[un]installer: Don't reference deprecated stdenv.libMario Rodas
`stdenv.lib` has been deprecated, and the correct approach is to use `lib` directly through `pkgs.lib`.
2020-12-22installer: silence apfs.util outputDaiderd Jordan
Passing incorrect flags prints help output to stdout so silence everything. Fixes #264
2020-12-21installer: move channel setup out of activationDaiderd Jordan
Fixes #234
2020-12-19installer: remove profile stepDaiderd Jordan
2020-12-18installer: extend test with shell environment checksDaiderd Jordan
2020-12-18installer: ensure /etc/static runs lastDaiderd Jordan
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-11-15installer: handle apfs.util on macOS 11.0 Big SurDaiderd Jordan
The flages of apfs.util changed in 11.0 so try both cases. Fixes #249
2020-08-26Merge pull request #215 from basvandijk/installer-correct-referenceesDaiderd Jordan
darwin-[un]installer: make sure all dependencies are part of the closure
2020-08-26Fix typoAlexandre Esteves
2020-08-21darwin-[un]installer: make sure all dependencies are part of the closureBas van Dijk
This makes sure the `darwin-installer` and `darwin-uninstaller` packages can be nix copied to any target and reliably be executed there.
2020-06-17darwin-installer: configure zshDaiderd Jordan
2020-05-17Only enable `services.nix-daemon` when no config is present upon installJames Ottaway
2020-03-28installer: try creating /run using synthetic.confDaiderd Jordan
Since macOS 10.15 Catalina / can't be changed directly anymore. Fixes #166
2019-12-14darwin-installer: add missing shebangDaiderd Jordan
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-07-01installer: detect multi-user installDaiderd Jordan
2019-06-25darwin-installer: use --show-trace Domen Kožar
This saved me some debugging
2019-02-21users: increase default nixbld users to 32 and set knownUsers by defaultDaiderd Jordan
Since the users.nix.configureBuildUsers target nixbld users, don't require them to be added to knownUsers explicitly.
2018-10-27Revert "installer: add NIX_PATH fallback in <darwin> lookup"Daiderd Jordan
This reverts commit 06f8d83f601a0e6a02fd3b1b584c90e2af1d5e4f.
2018-10-26installer: include channels in bootstrap NIX_PATHDaiderd Jordan
2018-10-26installer: add NIX_PATH fallback in <darwin> lookupDaiderd Jordan
The nix.nixPath option doesn't include everything, some paths are added dynamically now.
2018-10-26installer: don't use pure PATH for editorDaiderd Jordan
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-09-14installer: prefer nix from default profileDaiderd Jordan
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-08-01activation: fix missing /sbin entries in PATHDaiderd Jordan
2018-06-29fixup! installer and activation: Sanitise PATHKirill Elagin
2018-06-29installer and activation: Sanitise PATHKirill Elagin
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-29installer: Bring our own `nix-instantiate`Kirill Elagin
2018-04-14installer: make configuration writableDaiderd Jordan
If the installer is built from a channel or url the example is copied from the store and won't have write permissions.
2018-01-24installer: fallback to a default editorDaiderd Jordan
2018-01-17installer: add post checkDaiderd Jordan
2018-01-16uninstaller: add headerDaiderd Jordan
2018-01-16installer: fix editor checkDaiderd Jordan
2018-01-14installer: ask to edit configuration before installingDaiderd Jordan
This is skipped when stdin is not a tty, unlike the other interactive parts that look at stdout.
2018-01-14installer: configure build usersDaiderd Jordan
2018-01-14installer: move /run creationDaiderd Jordan
2018-01-14installer: fix patchDaiderd Jordan