docs: update Nix usage instructions
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I8717b49f21f777003787a663feb0467a6a6a6964
This commit is contained in:
parent
05b3dea1c6
commit
99c71f0790
1 changed files with 34 additions and 0 deletions
34
README.md
34
README.md
|
|
@ -232,6 +232,40 @@ npm start
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Nix</summary>
|
||||||
|
|
||||||
|
**Flake** (NixOS or flake-enabled systems):
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
inputs.troutbot.url = "github:notashelf/troutbot";
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, troutbot }: {
|
||||||
|
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
troutbot.nixosModules.troutbot
|
||||||
|
{
|
||||||
|
services.troutbot = {
|
||||||
|
enable = true;
|
||||||
|
environmentFile = "/path/to/.env"; # use Agenix if possible
|
||||||
|
configPath = "/path/to/config.ts" # use Agenix if possible
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
**Run directly**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
nix run github:notashelf/troutbot
|
||||||
|
```
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Docker</summary>
|
<summary>Docker</summary>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue