13
Nix
Neovoid Pineapple edited this page 2 months ago
Nix is a purely functional package manager that exozyme users can use to install packages.
Configuration
Run
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
.
Usage
You can install packages with nix-env --install
. nix-env --query
lists all directly installed packages and nix-env --uninstall
will remove a package.
For graphical acceleration, desktop integration, and fixing locale warnings, see this ArchWiki page.
Basic of nix package manager (cheatsheet)
Description | Command | Example |
---|---|---|
List All Installed pkgs | nix-env -q | -- |
Query Installed pkgs | nix-env -q search_term | nix-env -q librewolf |
Query Available pkgs | nix-env -qa search_term | nix-env -qa calibre |
Install pkgs | nix-env -iA nixpkgs.pkg_name | nix-env -iA nixpkgs.sakura |
Upgrade single pkg | nix-env -u pkg_name | nix-env -u librewolf |
Upgrade All pkg | nix-env -u | nix-env -u |
Uninstall pkg | nix-env -e pkg_name | nix-env -e sakura |
Note: Installed binaries are stored in ~/.nix-profile/bin