6 Nix
codedotjs edited this page 6 days ago

Nix is a purely functional package manager that exozyme users can use to install packages.



nix-channel --add https://nixos.org/channels/nixpkgs-unstable
nix-channel --update

to configure a channel (repository).

Now add the ~/.nix-profile/bin directory to your $PATH. For Fish, you can do this with fish_add_path ~/.nix-profile/bin.


You can install packages with nix-env --install. nix-env --query lists all directly installed packages and nix-env --uninstall will remove a package.

Check out this guide for setting up a development environment.

Tips and tricks

Graphical acceleration

To run OpenGL and Vulkan applications, install NixGL.

Desktop integration

For integrating Nix applications with your desktop environment, add the ~/.nix-profile/share directory to your $XDG_DATA_DIRS. For instance, with Fish this would look like adding export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS" to your ~/.config/fish/config.fish.

Locale warnings

Export the environmental variable LC_ALL=C to fix locale warnings.