nixos-config/nixos/legacy/trilium.nix
2024-05-19 00:20:54 +02:00

21 lines
484 B
Nix

{ config, pkgs, ... }:
{
services.trilium-server = {
enable = true;
dataDir = "/srv/trilium";
instanceName = config.networking.hostName;
host = "10.23.42.28";
#noAuthentication = true;
nginx = {
enable = true;
hostName = "trilium.${config.networking.hostName}.private";
};
};
services.nginx.virtualHosts."${config.services.trilium-server.nginx.hostName}".extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
}