{ config, ... }: # Memos - lightweight, privacy-first note-taking app. # # Native NixOS module (services.memos, available since this flake's pinned # nixpkgs release). Listens on 127.0.0.1:5230; Caddy handles public HTTPS # termination. Uses the module's default sqlite driver - no separate # database service needed, unlike Miniflux's Postgres. # # No secrets involved: the first account is created directly in the web UI # on first visit to https://notes.karanj.com. { services.memos = { enable = true; settings = { MEMOS_MODE = "prod"; MEMOS_ADDR = "127.0.0.1"; MEMOS_PORT = "5230"; MEMOS_DRIVER = "sqlite"; MEMOS_DATA = config.services.memos.dataDir; MEMOS_INSTANCE_URL = "https://notes.karanj.com"; }; }; }