summaryrefslogtreecommitdiff
path: root/pkgs/darwin-installer/default.nix
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
2022-08-16Add .nix-defexpr to NIX_PATH the way the NixOS module doesMalo Bourgon
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-21installer: move channel setup out of activationDaiderd Jordan
Fixes #234
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-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
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
2018-10-26installer: include channels in bootstrap NIX_PATHDaiderd Jordan
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-13installer: add --check flagDaiderd Jordan
2018-01-13installer: initDaiderd Jordan