Terms and Definitions in Nix Project: Difference between revisions

Mth (talk | contribs)
m Fix broken nix manual link
Pigs (talk | contribs)
m Add category Nix
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<!--T:1-->
If you come across a term or word you don't know, add it here.
If you come across a term or word you don't know, add it here.


<!--T:2-->
<!-- README: Rows in this table with named divs have been linked to in other pages. Avoid renaming or removing any of the divs. -->
<!-- README: Rows in this table with named divs have been linked to in other pages. Avoid renaming or removing any of the divs. -->
{| class="wikitable"
{| class="wikitable"
Line 16: Line 20:
|| (User) Profile
|| (User) Profile
|| Nix
|| Nix
|| Profiles simplify managing and switching between ''user environments'', and thus control which applications and system configurations are in active use. Generally, a ''profile'' is a link to a ''generation'', and the corresponding '''profiles''' folder collects a list of generations. A standalone Nix installation (i.e. on a Linux distro that is not NixOS) operates mainly on ''user'' profiles. In NixOS, there is also a ''system'' profile that manages system-wide configuration (e.g. ''/etc'', the kernel, ''initrd'', ''systemd''). Other tools like [[Home Manager]] also have their own profiles. By default, a user's active profile is stored at ''~/.nix-profile'':
|| Profiles simplify managing and switching between ''user environments'', and thus control which applications and system configurations are in active use. Generally, a ''profile'' is a link to a ''generation'', and the corresponding '''profiles''' folder collects a list of generations. A standalone Nix installation (i.e. on a Linux distro that is not NixOS) operates mainly on ''user'' profiles. In NixOS, there is also a ''system'' profile that manages the system-wide configuration (e.g. ''/etc'', the kernel, ''initrd'', ''systemd''). Other tools like [[Home Manager]] may also have their own profiles. By default, a user's active profile is stored at ''~/.nix-profile'':
<syntaxHighlight lang=shell>
<syntaxHighlight lang=shell>
$ ls -l ~/.nix-profile
$ ls -l ~/.nix-profile
Line 31: Line 35:
|| Derivation
|| Derivation
|| Nix
|| Nix
|| A Nix expression which describes a build action. Derivations are analogous to package definitions in other package managers. High-level derivations (such as the ones describing packages in [[Nixpkgs]]) get evaluated into low-level derivations (called ''store derivations''), for instance by using the <code>nix-instantiate</code> command. <code>nix-store --realise</code> run the build commands described in the derivation, producing one or more ''output paths''. <code>nix-build</code> is a user-friendly wrapper for the previous two commands.
|| A Nix expression which describes a build action. Derivations are analogous to package definitions in other package managers. High-level derivations, such as the ones describing packages in [[Nixpkgs]], get evaluated into low-level derivations (called ''store derivations''), for instance by using the <code>nix-instantiate</code> command. <code>nix-store --realise</code> runs the build commands described in the low-level derivation, producing one or more ''output paths''. <code>nix-build</code> is a user-friendly wrapper for the previous two commands.
|| [http://nixos.org/nix/manual/#gloss-derivation Nix Manual: Glossary - Derivation] <br> [http://nixos.org/nix/manual/#ssec-derivation Nix Manual: Derivation]
|| [http://nixos.org/nix/manual/#gloss-derivation Nix Manual: Glossary - Derivation] <br> [http://nixos.org/nix/manual/#ssec-derivation Nix Manual: Derivation]
|--------
|--------
Line 46: Line 50:
|| Nix expressions
|| Nix expressions
|| The <code>{ }</code> block contains "mutually recursive" attributes, which means they can refer to each other.
|| The <code>{ }</code> block contains "mutually recursive" attributes, which means they can refer to each other.
|| [http://nixos.org/nix/manual/#ex-hello-composition Composing the Hello Package]
|| [https://nix.dev/manual/nix/2.24/language/syntax.html#recursive-sets Nix Manual: Syntax and semantics: Recursive sets]
|--------
|--------
|| <code>expression evaluator</code>
|| <code>expression evaluator</code>
Line 106: Line 110:
-->
-->
|}
|}
</translate>
[[Category:Nix]]