From 0cffc7a029a30f515b29ad9d1d31044a5b689dda Mon Sep 17 00:00:00 2001 From: FliegendeWurst <2012gdwu+github@posteo.de> Date: Tue, 14 Jun 2022 10:36:53 +0200 Subject: [PATCH] Created NixOS server installation (markdown) --- NixOS-server-installation.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 NixOS-server-installation.md diff --git a/NixOS-server-installation.md b/NixOS-server-installation.md new file mode 100644 index 0000000..6354c7c --- /dev/null +++ b/NixOS-server-installation.md @@ -0,0 +1,23 @@ +This page describes configuring the Trilium module included in NixOS. + +## Requirements + +[NixOS](https://nixos.org/) installation. + +## Configuration + +Add this to your `configuration.nix`: + +```bash +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](https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=trilium-server) for more options (including nginx reverse proxy configuration). \ No newline at end of file