Terms and Definitions in Nix Project: Difference between revisions
imported>Nix Add another profiles reference |
imported>Nix add example for output path |
||
| Line 16: | Line 16: | ||
|| (User) Profile | || (User) Profile | ||
|| Nix | || Nix | ||
|| Most generally, a ''profile'' is a link to a ''generation'', and there's a '''profiles''' (note the '''s''') folder which collects types of profiles together so that they form lists of generations. In standalone Nix (e.g. on a different Linux distro), it's primary use is user profiles. In NixOS, there's also the ''system'' profile, which manages system-wide configuration (e.g. ''/etc'', the kernel, ''initrd'', ''systemd''). Tools like [[Home Manager]] also have their own profile (which would also be per-user). The user's ''active profile'' is defined in ''~/.nix-profile'', and is what all '''nix-env''' commands would operate on by default.< | || Most generally, a ''profile'' is a link to a ''generation'', and there's a '''profiles''' (note the '''s''') folder which collects types of profiles together so that they form lists of generations. In standalone Nix (e.g. on a different Linux distro), it's primary use is user profiles. In NixOS, there's also the ''system'' profile, which manages system-wide configuration (e.g. ''/etc'', the kernel, ''initrd'', ''systemd''). Tools like [[Home Manager]] also have their own profile (which would also be per-user). The user's ''active profile'' is defined in ''~/.nix-profile'', and is what all '''nix-env''' commands would operate on by default.<syntaxHighlight lang=shell> | ||
❯ ls -l ~/.nix-profile | ❯ ls -l ~/.nix-profile | ||
lrwxrwxrwx | lrwxrwxrwx ... /home/username/.nix-profile -> | ||
/nix/var/nix/profiles/per-user/username/profile</syntaxHighlight> | |||
|| [http://nixos.org/nix/manual/#sec-profiles Nix Manual: Profiles]<br>[https://nixos.org/guides/nix-pills/install-on-your-running-system.html#idm140737320787760 Nix Pills - The first profile] | || [http://nixos.org/nix/manual/#sec-profiles Nix Manual: Profiles]<br>[https://nixos.org/guides/nix-pills/install-on-your-running-system.html#idm140737320787760 Nix Pills - The first profile] | ||
|-------- | |-------- | ||
| Line 33: | Line 34: | ||
|| Output path | || Output path | ||
|| Nix | || Nix | ||
|| A ''store path'' produced by a derivation. These are generally analogous to built packages, or pieces of them. | || A ''store path'' produced by a derivation. These are generally analogous to built packages, or pieces of them.<br><syntaxHighlight lang=shell>❯ ls -ld /nix/store/*-firefox-9*/ | ||
dr-xr-xr-x ... /nix/store/v4b8...3d0w-firefox-92.0/</syntaxHighlight> | |||
|| [http://nixos.org/nix/manual/#ssec-derivation Nix Manual: Derivation] | || [http://nixos.org/nix/manual/#ssec-derivation Nix Manual: Derivation] | ||
|-------- | |-------- | ||