nixos-configuration/hosts/magnesium/services/trilium.nix
2025-05-26 16:43:35 +02:00

23 lines
411 B
Nix

{ config, pkgs, ... }:
let
domain = "notes.jalr.de";
inherit (config.networking) ports;
in
{
services.trilium-server = {
enable = true;
package = pkgs.trilium-next-server;
host = "127.0.0.1";
port = ports.trilium.tcp;
nginx = {
enable = true;
hostName = domain;
};
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
};
}