Add more Nix tips and tricks
parent
a6ed98534f
commit
0e0177478d
14
Nix.md
14
Nix.md
|
@ -11,7 +11,7 @@ nix-channel --update
|
|||
```
|
||||
to configure a channel (repository).
|
||||
|
||||
Now add the `~/.nix-profile/bin` directory to your `$PATH`.
|
||||
Now add the `~/.nix-profile/bin` directory to your `$PATH`. For Fish, you can do this with `fish_add_path ~/.nix-profile/bin`.
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -21,4 +21,14 @@ Check out [this guide](https://nixos.org/guides/dev-environment.html) for settin
|
|||
|
||||
## Tips and tricks
|
||||
|
||||
To run OpenGL and Vulkan applications, install [NixGL](https://github.com/guibou/nixGL).
|
||||
### Graphical acceleration
|
||||
|
||||
To run OpenGL and Vulkan applications, install [NixGL](https://github.com/guibou/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.
|
Loading…
Reference in a new issue