commit a6c60efe3be2e017981232a55c0dc163fbb32b6b
parent c94a4cc369db56b9ad171b6cf95fed3dbe6a46f4
Author: mtmn <miro@haravara.org>
Date: Mon, 13 Apr 2026 11:56:09 +0200
chore: update scorpus
Diffstat:
3 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/flake.lock b/flake.lock
@@ -30,11 +30,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
- "lastModified": 1776067383,
- "narHash": "sha256-ANOE4wBOkYu1i4MepeVNN5mhAEQZcltH9gr+U2VtFhU=",
+ "lastModified": 1776084450,
+ "narHash": "sha256-hNc2Ddt6F2AhdoVbCVA0/SOgEI4DatSr0TjjSLiGhpc=",
"ref": "refs/heads/master",
- "rev": "21a3bf5a0431b9295f9b072fbb0f8b25d96190dc",
- "revCount": 51,
+ "rev": "78990317aaf6a7f7cd626bd8a9794090c8391657",
+ "revCount": 57,
"type": "git",
"url": "ssh://git@codeberg.org/mtmn/corpus.git"
},
@@ -389,11 +389,11 @@
"tools": {
"flake": false,
"locked": {
- "lastModified": 1775935958,
- "narHash": "sha256-OSC7fpM0ux0ZAGI0vwtv/4qpi0fieUgTpt3KIXDvkFI=",
+ "lastModified": 1776076416,
+ "narHash": "sha256-R+6oAOXA41vM7mgO7b7OYUGmiox+4sCbM6awd+JK88Y=",
"ref": "refs/heads/main",
- "rev": "b1122f41f73f313149b37471686d8d841abe96d6",
- "revCount": 27,
+ "rev": "8bf35f488b18b0e0b24b13c51920932021bf8029",
+ "revCount": 28,
"type": "git",
"url": "ssh://git@codeberg.org/mtmn/tools.git"
},
diff --git a/modules/services/corpus.nix b/modules/services/corpus.nix
@@ -23,11 +23,21 @@ in {
type = lib.types.str;
default = "/var/lib/corpus";
};
+
+ databaseFile = lib.mkOption {
+ type = lib.types.str;
+ default = "${cfg.dataDir}/corpus.db";
+ };
+
+ secretFile = lib.mkOption {
+ type = lib.types.path;
+ default = ../../secrets/corpus.age;
+ };
};
config = lib.mkIf cfg.enable {
age.secrets.corpus = {
- file = ../../secrets/corpus.age;
+ file = cfg.secretFile;
owner = "corpus";
};
@@ -38,7 +48,7 @@ in {
environment = {
PORT = toString cfg.port;
- DATABASE_FILE = "${cfg.dataDir}/corpus.db";
+ DATABASE_FILE = cfg.databaseFile;
};
serviceConfig = {
diff --git a/secrets/corpus.age b/secrets/corpus.age
Binary files differ.