docs: add Nix instructions to README

This commit is contained in:
LordMZTE 2024-08-10 17:15:34 +02:00
parent bb536e9184
commit 4765746652
No known key found for this signature in database
GPG key ID: B64802DC33A64FF6

View file

@ -22,6 +22,25 @@ cargo install forgejo-cli
cargo install --git https://codeberg.org/Cyborus/forgejo-cli.git --branch main cargo install --git https://codeberg.org/Cyborus/forgejo-cli.git --branch main
``` ```
### Nix
A Nix flake is included in this repository that you may use. You could install it into your Nix
profile, for example:
```
nix profile install git+https://codeberg.org/Cyborus/forgejo-cli
```
...or include it in the flake inputs of your NixOS system:
```nix
{
inputs = {
# ...
forgejo-cli.url = "git+https://codeberg.org/Cyborus/forgejo-cli";
};
# ...
}
```
### OCI Container ### OCI Container
`forgejo-cli` is available as an OCI container for use in CI, at `forgejo-cli` is available as an OCI container for use in CI, at