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
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
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
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
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
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
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
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