Docs

NixOS-server-installation

This page describes configuring the Trilium module included in NixOS.

Requirements

NixOS installation.

Configuration

Add this to your configuration.nix:

services.trilium-server.enable = true;

# default data directory: /var/lib/trilium
#services.trilium-server.dataDir = "/var/lib/trilium-sync-server";

# default bind address: 127.0.0.1, port 8080
#services.trilium-server.host = "0.0.0.0";
#services.trilium-server.port = 12783;

Uncomment any option you would like to change.

See the NixOS options list for more options (including nginx reverse proxy configuration).