Adding programs to PATH: Difference between revisions

Axka (talk | contribs)
m Axka moved page Package installation to Adding programs to PATH: Better description of page contents
Tags: Mobile edit Mobile web edit
Axka (talk | contribs)
Explain PATH
Tags: Mobile edit Mobile web edit Visual edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Tutorial]]
Here is a collection of methods to add a program to the <code>PATH</code> environment variable with [[Nix (package manager)]] with packages from [[Nixpkgs]].
Here is a collection of methods to add a program to the <code>PATH</code> environment variable with [[Nix (package manager)]] with packages from [[Nixpkgs]].
The <code>PATH</code> environment variable (often referred to as "the PATH") is an environment variable that tells programs where to find other programs. When you run a command <code>hello</code> in a bash shell, it basically searches for an executable named <code>hello</code> in every directory listed in <code>PATH</code>.


The NixOS method supports installing [[udev]] rules, which may be required for programs interacting with hardware. Services should be enabled and configured with NixOS options rather than by adding them manually to <code>environment.systemPackages</code>.
The NixOS method supports installing [[udev]] rules, which may be required for programs interacting with hardware. Services should be enabled and configured with NixOS options rather than by adding them manually to <code>environment.systemPackages</code>.