From e74cfc52fe4ce1352e5fa885c275764d2c6233a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 8 Aug 2025 08:37:59 +0200 Subject: [PATCH] docs/uninstall: add instructions for freebsd --- doc/manual/source/installation/uninstall.md | 32 +++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/manual/source/installation/uninstall.md b/doc/manual/source/installation/uninstall.md index 8d45da6bb..69d59847b 100644 --- a/doc/manual/source/installation/uninstall.md +++ b/doc/manual/source/installation/uninstall.md @@ -41,6 +41,38 @@ There may also be references to Nix in which you may remove. +### FreeBSD + +1. Stop and remove the Nix daemon service: + + ```console + sudo service nix-daemon stop + sudo rm -f /usr/local/etc/rc.d/nix-daemon + sudo sysrc -x nix_daemon_enable + ``` + +2. Remove files created by Nix: + + ```console + sudo rm -rf /etc/nix /usr/local/etc/profile.d/nix.sh /nix ~root/.nix-channels ~root/.nix-defexpr ~root/.nix-profile ~root/.cache/nix + ``` + +3. Remove build users and their group: + + ```console + for i in $(seq 1 32); do + sudo pw userdel nixbld$i + done + sudo pw groupdel nixbld + ``` + +4. There may also be references to Nix in: + - `/usr/local/etc/bashrc` + - `/usr/local/etc/zshrc` + - Shell configuration files in users' home directories + + which you may remove. + ### macOS > **Updating to macOS 15 Sequoia**