minimal nix config for running a tangled knot
1{
2 services.tangled-knot = {
3 enable = true;
4 server = {
5 hostname = ""; # put in the hostname where your knot can be accessed at. e.g. knot.a.tgirl.gay
6 owner = ""; # your did, must be did:plc:<whatever> or did:web:<whatever>.
7 };
8 # optional configuration options. the current value is the default provided to the knot server.
9 # appviewEndpoint = "https://tangled.sh"; # appview endpoint.
10 # gitUser = "git"; # user that hosts git repos and performs git operations.
11 # openFirewall = true; # open port 22 in the firewall for ssh.
12 # stateDir = "/home/${cfg.gitUser}"; # tangled knot data directory.
13 # repo = {
14 # scanPath = cfg.stateDir; # path where repositories are scanned from;
15 # mainBranch = "main"; # default branch name for repositories;
16 # };
17 # motd = ""; # message of the day. the contents are shown as-is; eg. you will want to add a newline if setting a non-empty message since the knot won't do this for you.
18 # motdFile = null; # "file containing message of the day. the contents are shown as-is; eg. you will want to add a newline if setting a non-empty message since the knot won't do this for you."
19 # server = {
20 # listenAddr = "0.0.0.0:5555"; # address to listen on.
21 # internalListenAddr = "127.0.0.1:5444"; # internal address for inter-service communication.
22 # dbPath = "${cfg.stateDir}/knotserver.db"; # path to the database file.
23 # dev = false; # enable development mode (disables signature verification)
24 # };
25 };
26}