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

22 lines
484 B
Nix
Raw Normal View History

2023-05-20 22:31:36 +02:00
{ config, pkgs, ... }:
2023-05-14 02:59:03 +02:00
{
2023-05-20 22:31:36 +02:00
2023-05-14 02:59:03 +02:00
services.trilium-server = {
enable = true;
dataDir = "/srv/trilium";
2023-05-22 09:45:58 +02:00
instanceName = config.networking.hostName;
2023-05-14 02:59:03 +02:00
host = "10.23.42.28";
2023-05-15 18:35:35 +02:00
#noAuthentication = true;
nginx = {
enable = true;
hostName = "trilium.${config.networking.hostName}.private";
};
2023-05-14 02:59:03 +02:00
};
2023-05-15 18:35:35 +02:00
services.nginx.virtualHosts."${config.services.trilium-server.nginx.hostName}".extraConfig = ''
allow ${config.tinc.private.subnet};
deny all;
'';
2023-05-14 02:59:03 +02:00
}