docs(readme): nixos installation

This commit is contained in:
MeexReay 2025-08-30 13:46:14 +03:00 committed by GitHub
parent 697ff09936
commit 91c2c7f35e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ cargo build -r # build release (target/release/bRAC)
Read more about that on the [compiling docs](docs/compiling.md). Read more about that on the [compiling docs](docs/compiling.md).
### nix package ### nixos installation
If you have Nix package manager installed, you can use: If you have Nix package manager installed, you can use:
@ -64,6 +64,28 @@ nix build github:MeexReay/bRAC # build release (result/bin/bRAC)
nix run github:MeexReay/bRAC # build and run nix run github:MeexReay/bRAC # build and run
``` ```
To install, you need to make [a flake for system](https://nixos.wiki/wiki/flakes#Using_nix_flakes_with_NixOS)
Add bRAC repository to inputs:
```nix
{
inputs.bRAC.url = "github:MeexReay/bRAC"
}
```
Then add the package to nixos/home-manager config like this:
```nix
{ inputs, ... }
{
environment.systemPackages = [
inputs.bRAC.packages.x86-64_linux.default
];
}
```
## chat commands ## chat commands
commands are any messages that start with a slash `/` \ commands are any messages that start with a slash `/` \