nixos-configuration/hosts/magnesium/services/trilium.nix
2025-04-16 22:54:29 +02:00

23 lines
418 B
Nix

{ config, pkgs, ... }:
let
domain = "notes.jalr.de";
inherit (config.networking) ports;
in
{
services.trilium-server = {
enable = true;
package = pkgs.master.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;
};
}