nixos-config/nixos/machines/sterni/trilium.nix

20 lines
424 B
Nix
Raw Normal View History

2023-08-14 03:08:56 +02:00
{ 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;
'';
}