doc: add selfhosting guide

This commit is contained in:
tux
2025-06-24 22:25:17 +05:30
parent d1208065f0
commit 68230c88bf

View File

@ -59,4 +59,26 @@ trok tcp PORT_NUMBER
## Selfhost ## Selfhost
TODO ```nix
# Add to your flake inputs
trok = {
url = "github:tuxdotrs/trok";
inputs.nixpkgs.follows = "nixpkgs";
};
# Add this in your nixos config
{inputs, ...}: {
imports = [
inputs.trok.nixosModules.default
];
tux.services.trok = {
enable = true;
host = "0.0.0.0";
port = 1337;
openFirewall = true;
user = "trok";
group = "trok";
};
}
```