Nix (package manager): Difference between revisions
imported>Ixxie Wrote install section. |
imported>Ixxie Moved `common errors` to a new debugging section under usage. |
||
Line 11: | Line 11: | ||
The [https://nixos.org/nix/manual/#chap-installation installation section of the Nix manual] describes how to install Nix from binary or source on Linux and Mac systems for a user with root privileges; it is easiest to install Nix for a single user, but steps are also included for setting up a multiuser installation. For an extensive guide on various methods for installing Nix - including how to install Nix without root privileges - see the [[Nix Installation Guide]]. | The [https://nixos.org/nix/manual/#chap-installation installation section of the Nix manual] describes how to install Nix from binary or source on Linux and Mac systems for a user with root privileges; it is easiest to install Nix for a single user, but steps are also included for setting up a multiuser installation. For an extensive guide on various methods for installing Nix - including how to install Nix without root privileges - see the [[Nix Installation Guide]]. | ||
=== Debugging === | |||
==== Common Errors ==== | |||
===== Bad configuration option: gssapikexalgorithms ===== | |||
Found when using an SSH binary from Nix on typically RPM-based distros like CentOS, Fedora, Scientific Linux, Redhat, etc. '''The quick fix:''' Just comment out the configuration option in the ssh config file, you probably don't need it. | |||
===== Desktop Environment does not find .desktop files ===== | |||
IF your DE does not look in <code>$HOME/.nix-profile/share</code> for .desktop files. | |||
You need to add that path to the <code>XDG_DATA_DIRS</code>, the position reflects precedence so files in earlier directories shadow files in later directories. This can be accomplished in various ways depending on your login manager, see [https://wiki.archlinux.org/index.php/Xprofile Arch wiki: Xprofile] for more information. | |||
For example using <code>~/.xprofile</code> as follows: | |||
<syntaxHighlight lang="console"> | |||
$ export XDG_DATA_DIRS=$HOME/.nix-profile/share:/usr/local/share:/usr/share | |||
</syntaxHighlight> | |||
Notice that you have to include the default locations on your system, otherwise they will be overwritten. Find out the proper paths using <code>echo $XDG_DATA_DIRS</code>. (Note: <code>export XDG_DATA_DIRS=$HOME/.nix-profile/share:$XDG_DATA_DIRS</code> did not work, XDG_DATA_DIRS ended up containing only <code>$HOME/.nix-profile/share:</code> which isn't even a valid path.) | |||
=== Configuration === | === Configuration === | ||
Line 29: | Line 50: | ||
== History == | == History == | ||