1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-21 07:40:14 +00:00
Commit graph

20 commits

Author SHA1 Message Date
Emily
e182d8dff6 nix: add nix.enable option to disable Nix management
This is an equivalent of the `nix.enable` option from NixOS
and Home Manager. On NixOS, it mostly serves to allow building
fixed‐configuration systems without any Nix installation at
all. It should work for that purpose with nix-darwin too, and the
implementation is largely the same, but the main use case is more
similar to the Home Manager option: to allow the use of nix-darwin
with an unmanaged system installation of Nix, including when there
is another service expecting to manage it, as with Determinate.

By providing an escape hatch to opt out of Nix management entirely,
this will also allow us to consolidate and simplify our existing Nix
installation management, by being more opinionated about things like
taking ownership of the daemon and the build users. Porting one option
from NixOS lets us drop two that only ever existed in nix-darwin and
reduce overall complexity.
2025-02-07 19:44:59 +00:00
Emily
94adbd6259 darwin-uninstaller: remove darwin channel from root too 2025-01-18 19:38:34 +00:00
Emily
8f4f3d8d2d darwin-uninstaller: remove code for macOS < 11 2025-01-14 15:56:20 +00:00
Michael Hoang
ec5fce6061 uninstaller: check nix-daemon works after restoring 2024-11-17 01:11:27 +11:00
Michael Hoang
e07f08c0dc uninstaller: fix restoring nix-daemon launchd daemon 2024-11-17 01:11:27 +11:00
Michael Hoang
3a89b61432 uninstaller: check nix-daemon was correctly reinstalled 2024-11-07 18:52:15 +11:00
Michael Hoang
ebca0c23c9 uninstaller: switch to writeShellApplication
By not defining a `shellHook`, `nix-shell -A uninstaller` and
`nix-shell -A uninstaller.check` no longer work.
2024-11-07 18:52:15 +11:00
Michael Hoang
84ad3a2d7e uninstaller: remove /run symlink 2024-11-07 18:17:34 +11:00
Andrew Marshall
5c2700533c darwin-uninstaller: Fix when using nixpkgs.config.allowAliases = false 2024-03-06 08:04:42 -05:00
Graham Christensen
09284ab00b Install darwin-uninstall by default, which includes the 'empty' config it switches to
Co-Authored-By: Michael Hoang <enzime@users.noreply.github.com>
2023-11-16 17:47:24 +11:00
Michael Hoang
ac9a366aed uninstaller: remove /Applications/Nix Apps 2023-07-11 18:59:05 +10:00
Mario Rodas
e78f90f795 darwin-[un]installer: Don't reference deprecated stdenv.lib
`stdenv.lib` has been deprecated, and the correct approach is to use
`lib` directly through `pkgs.lib`.
2021-02-23 04:20:00 +00: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
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
6f1c1049dd
installer: fallback to a default editor 2018-01-24 22:37:40 +01:00
Daiderd Jordan
e431dd78a2
uninstaller: don't fail on nix-daemon checks 2018-01-18 18:51:46 +01:00
Daiderd Jordan
c5ecf11b57
uninstaller: fix removal of /run/current-system 2018-01-17 22:16:48 +01:00
Daiderd Jordan
6f45339cfe
uninstaller: add post check 2018-01-17 22:00:05 +01:00
Daiderd Jordan
64a46b7164
uninstaller: add header 2018-01-16 00:58:13 +01:00
Daiderd Jordan
6e42f63784
uninstaller: init 2018-01-15 01:12:26 +01:00