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

16 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
Michael Hoang
e07f08c0dc uninstaller: fix restoring nix-daemon launchd daemon 2024-11-17 01:11:27 +11:00
Michael Hoang
c3b406bd1c uninstaller: restore *.before-nix-darwin files
Fixes https://github.com/LnL7/nix-darwin/issues/911
Fixes https://github.com/LnL7/nix-darwin/issues/912
2024-11-07 18:17:34 +11:00
Michael Hoang
9cd45289c9 uninstaller: reset any shells pointing to /run/current-system/sw/bin 2024-11-07 18:17:34 +11:00
Michael Hoang
1b5fa6be40 uninstaller: remove unnecessary attempt to delete nix-daemon
Fixes https://github.com/LnL7/nix-darwin/issues/910
2024-11-07 18:17:34 +11: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
8eb09d4d0b uninstaller: fix removing /Applications/Nix Apps 2023-07-12 18:56:13 +10:00
Michael Hoang
ac9a366aed uninstaller: remove /Applications/Nix Apps 2023-07-11 18:59:05 +10:00
Daiderd Jordan
e8f4288d16
uninstaller: copy services instead of symlinking 2021-12-21 15:42:45 +01:00
Kid
a732ed4851
uninstaller: also remove ~/Applications/Nix Apps 2021-08-10 21:41:35 +08:00
Daiderd Jordan
803bf18141
uninstaller: continue if removing channel fails and make nix-daemon reload more robust
Kind of a workaround, but failing to remove the channel isn't a big
deal.
2018-09-14 22:32:49 +02:00
Daiderd Jordan
fc3a096f67
uninstaller: remove darwin channel 2018-01-17 21:34:01 +01:00
Daiderd Jordan
64a46b7164
uninstaller: add header 2018-01-16 00:58:13 +01:00
Daiderd Jordan
e2acb8f82a
uninstaller: run on travis 2018-01-15 08:51:04 +01:00
Daiderd Jordan
6e42f63784
uninstaller: init 2018-01-15 01:12:26 +01:00