FAQ: Difference between revisions

imported>Fpletz
No edit summary
imported>Manveru
m Fix the name of the channel for nixos-unstable
Line 332: Line 332:
It is possible to have multiple nix-channels simultaneously. To add the unstable channel with the specifier ''unstable'',
It is possible to have multiple nix-channels simultaneously. To add the unstable channel with the specifier ''unstable'',


<syntaxhighlight lang="bash">sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable</syntaxhighlight>
<syntaxhighlight lang="bash">sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos-unstable</syntaxhighlight>
After updating the channel
After updating the channel


<syntaxhighlight lang="bash">sudo nix-channel --update unstable</syntaxhighlight>
<syntaxhighlight lang="bash">sudo nix-channel --update nixos-unstable</syntaxhighlight>
queries via <code>nix-env</code> (or <code>nox</code>) will show packages from both ''stable'' and ''unstable''. Use this to install unstable packages into your user environment. The following snippet shows how this can be done in ''configuration.nix''.
queries via <code>nix-env</code> (or <code>nox</code>) will show packages from both ''stable'' and ''unstable''. Use this to install unstable packages into your user environment. The following snippet shows how this can be done in ''configuration.nix''.