From 55a89b1dbbdf37b5c69995d404d8000385a549ec Mon Sep 17 00:00:00 2001 From: architeuthidae Date: Thu, 1 Aug 2024 14:43:33 +0800 Subject: [PATCH] doc: Add note on nix profile deletion, garbage collect --- doc/manual/installing.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/manual/installing.rst b/doc/manual/installing.rst index 24e56b396..1f5a64739 100644 --- a/doc/manual/installing.rst +++ b/doc/manual/installing.rst @@ -91,6 +91,17 @@ You might be interested in creating multiple directories containing different `` To find more packages you can browse the `Nix package search `_ website. If your favorite package is not available with Nix, contact M-Labs using the helpdesk@ email. +.. note:: + If you find you prefer using flakes to your original ``nix profile`` installation, you can remove it from your system by running: :: + + $ nix profile list + + finding the entry with its ``Original flake URL`` listed as the GitHub ARTIQ repository, noting its index number (in a fresh Nix system it will normally be the only entry, at index 0), and running: :: + + $ nix profile remove [index] + + While using flakes, ARTIQ is not 'installed' as such in any permanent way. However, Nix will preserve independent cached packages in ``/nix/store`` for each flake, which over time or with many different flakes and versions can take up large amounts of storage space. To clear this cache, run ``$ nix-garbage-collect``. + .. _installing-troubleshooting: Troubleshooting