{ config, pkgs, inputs, ... }: { virtualisation.oci-containers.containers = { memos = { image = "ghcr.io/usememos/memos:latest"; ports = [ "127.0.0.1:5230:5230" ]; volumes = [ "/var/opt/memos:/var/opt/memos" ]; cmd = [ "--name memos" ]; }; }; services.caddy = { enable = true; virtualHosts."n.jacekpoz.pl".extraConfig = '' reverse_proxy * localhost:5230 ''; }; networking.firewall.allowedTCPPorts = [ 5230 ]; networking.firewall.allowedUDPPorts = [ 5230 ]; }