From 85ec7df481efc277a5d65212df418b8751f23d98 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 25 Mar 2022 10:55:23 -0500 Subject: [PATCH] Separate Nix page into sections --- Nix.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Nix.md b/Nix.md index d9cb29c..2e79f6a 100644 --- a/Nix.md +++ b/Nix.md @@ -1,6 +1,6 @@ **[Nix](https://wiki.archlinux.org/title/Nix)** is a purely functional package manager that exozyme users can use to install [packages](https://search.nixos.org/packages). -## Usage +## Configuration You must be in the `nix-users` group to use Nix. Ask on Matrix to get this set up. @@ -11,6 +11,14 @@ nix-channel --update ``` to configure a channel (repository). -Now you can install packages with `nix-env --install`. +Now add the `~/.nix-profile/bin` directory to your `$PATH`. + +## 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. + +Check out [this guide](https://nixos.org/guides/dev-environment.html) for setting up a development environment. + +## Tips and tricks To run OpenGL and Vulkan applications, install [NixGL](https://github.com/guibou/nixGL). \ No newline at end of file