From 91c2c7f35e023ae8101949f5d8367b68ae66e33b Mon Sep 17 00:00:00 2001 From: MeexReay <127148610+MeexReay@users.noreply.github.com> Date: Sat, 30 Aug 2025 13:46:14 +0300 Subject: [PATCH] docs(readme): nixos installation --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3901757..a570de7 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ cargo build -r # build release (target/release/bRAC) 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: @@ -64,6 +64,28 @@ nix build github:MeexReay/bRAC # build release (result/bin/bRAC) 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 commands are any messages that start with a slash `/` \