From 781dccef111b68b4ebb98aa5404aaf3cf0b01dee 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 ec83a6268..5d158e0a9 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