19 lines
424 B
Nix
19 lines
424 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
|
|
services.trilium-server = {
|
|
enable = true;
|
|
instanceName = config.networking.hostName;
|
|
host = "10.23.42.27";
|
|
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;
|
|
'';
|
|
|
|
}
|