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