mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-09-20 16:38:05 +03:00
44d21f6ef9
- helps navigating the code as it highlights which files are generated - makes it less error prone when working incrementally (although this should be just fixed by building out of tree)
1.2 KiB
1.2 KiB
R""(
Description
nix profile
allows you to create and manage Nix profiles. A Nix
profile is a set of packages that can be installed and upgraded
independently from each other. Nix profiles are versioned, allowing
them to be rolled back easily.
Files
)""
#include "generated-doc/files/profiles.md.gen.hh"
R""(
Profile compatibility
Warning
Once you have used
nix profile
you can no longer usenix-env
without first deleting$XDG_STATE_HOME/nix/profiles/profile
Once you installed a package with nix profile
, you get the following error message when using nix-env
:
$ nix-env -f '<nixpkgs>' -iA 'hello'
error: nix-env
profile '/home/alice/.local/state/nix/profiles/profile' is incompatible with 'nix-env'; please use 'nix profile' instead
To migrate back to nix-env
you can delete your current profile:
Warning
This will delete packages that have been installed before, so you may want to back up this information before running the command.
$ rm -rf "${XDG_STATE_HOME-$HOME/.local/state}/nix/profiles/profile"
)""