stub: worblehat settings

This commit is contained in:
Vegard Bieker Matthey
2026-03-18 13:39:47 +01:00
parent 4e5e649361
commit 3c1e9e6229
2 changed files with 18 additions and 6 deletions

12
flake.lock generated
View File

@@ -492,16 +492,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1770887951, "lastModified": 1773832647,
"narHash": "sha256-6LGqM9yhONtfCXHtPNn3S0GFsmB2dCchyozHDevwmiQ=", "narHash": "sha256-VZVQDwqDmMGJcJ8WnD6Ug+DTV0b6S2DKHkdj3QvFO+w=",
"ref": "main", "ref": "stable_deps",
"rev": "911063041f24d594a772a2a699d71d3d94953ce8", "rev": "9bdaaf6c5180309b7810bb72f9e717a7c3b2a504",
"revCount": 101, "revCount": 102,
"type": "git", "type": "git",
"url": "https://git.pvv.ntnu.no/Projects/worblehat.git" "url": "https://git.pvv.ntnu.no/Projects/worblehat.git"
}, },
"original": { "original": {
"ref": "main", "ref": "stable_deps",
"type": "git", "type": "git",
"url": "https://git.pvv.ntnu.no/Projects/worblehat.git" "url": "https://git.pvv.ntnu.no/Projects/worblehat.git"
} }

View File

@@ -123,6 +123,18 @@ in
groups.drumknotty = { }; groups.drumknotty = { };
}; };
services.worblehat.settings = {
logging = {
debug = true;
dbug_sql = false;
};
database = {
type = "sqlite";
sqlite.path = "./worblehat.sqlite";
};
};
services.dibbler.settings.database = lib.mkIf cfg.createLocalDatabase { services.dibbler.settings.database = lib.mkIf cfg.createLocalDatabase {
type = "postgresql"; type = "postgresql";
postgresql.host = "/run/postgresql"; postgresql.host = "/run/postgresql";