From edbf27af767c6a70012b631f6bda6a57dbf8e8c6 Mon Sep 17 00:00:00 2001 From: Evan Relf Date: Tue, 14 Jan 2020 10:08:08 -0800 Subject: [PATCH] Document how to uninstall --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index f37120e..16f267a 100644 --- a/README.md +++ b/README.md @@ -77,3 +77,25 @@ before running the nix or nixops command. Something is wrong with LinuxKit. See the debugging section to try things out. Leave an issue at https://github.com/nix-community/linuxkit-nix/issues + +## Uninstalling + +```sh +# Remove configuration +rm -rf ~/.cache/nix-linuxkit-builder/ + +# Remove build machine +# (edit manually if you have other configuration here) +sudo rm -f /etc/nix/machines + +# Remove LaunchAgent +launchctl stop org.nix-community.linuxkit-builder +rm -f ~/Library/LaunchAgents/org.nix-community.linuxkit-builder.plist + +# Remove SSH config +# (edit manually if you have other configuration here) +sudo rm -rf /var/root/.ssh + +# Uninstall Nix package +nix-env -e linuxkit-builder +```