User Environment: Difference between revisions

imported>Nix
m fix title
AveryKoen (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Profiles and '''''User Environments''''' are Nix’s mechanism for implementing the ability to allow different users to have different configurations, and to do atomic upgrades and rollbacks. There may be many user environments: different users can have different environments, and individual users can switch between different environments. In Nix — and thus, NixOS — a '''''User Environment''''' is a core concept in understanding how the system operates.  
'''''User Environments''''' are Nix’s mechanism for implementing the ability to allow different users to have different configurations, and to do atomic upgrades and rollbacks. Different users can have their own separate environments, and individual users can create multiple environments they can switch between.


As such, it is covered in pieces in many parts of the {{Nix Manual}}. This page serves as a quick reference. Note, user environments are not currently covered at all in the {{NixOS Manual}}. User environments are mentioned in the {{Nixpkgs Manual|name=Nixpkgs Manual: Chapter - Python Install Guide|anchor=#python}}; there, a brief summary interspersed with Python install instructions.
In Nix and NixOS, a user environment is a core concept in understanding how the system operates. This page serves as a quick reference. More documentation is present in parts of the {{Nix Manual}} and in the {{Nixpkgs Manual|name=Nixpkgs Manual: Chapter - Python Install Guide|anchor=#python}}, interspersed with [[Python]] install instructions.


== Nix manual references ==
== Nix manual references ==
Line 14: Line 14:
This would look like:
This would look like:
   ❯ ls -l ~/.nix-profile
   ❯ ls -l ~/.nix-profile
   lrwxrwxrwx 1 username users 43 Sep 13 16:13 /home/username/.nix-profile -> /nix/var/nix/profiles/per-user/username/profile
   lrwxrwxrwx ... /home/username/.nix-profile -> /nix/var/nix/profiles/per-user/username/profile


=== Package management section ===
=== Package management section ===