mirror of
https://github.com/tuxdotrs/trok.git
synced 2025-07-06 20:06:34 +05:30
doc: add selfhosting guide
This commit is contained in:
24
README.md
24
README.md
@ -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";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user