aboutsummaryrefslogtreecommitdiff
path: root/modules/memos.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/memos.nix')
-rw-r--r--modules/memos.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/memos.nix b/modules/memos.nix
new file mode 100644
index 0000000..bc80e24
--- /dev/null
+++ b/modules/memos.nix
@@ -0,0 +1,24 @@
+{ 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";
+ };
+ };
+}