gerd.forgejo: moved to postgresql instead of sqlite

This commit is contained in:
eyjhb 2024-08-24 22:18:05 +02:00
parent 13ab4ae245
commit 5a48cedb58
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -2,10 +2,10 @@
let let
svc_domain = "git.${config.mine.shared.settings.domain}"; svc_domain = "git.${config.mine.shared.settings.domain}";
in { in {
services.forgejo = { services.forgejo = {
enable = true; enable = true;
stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo";
package = pkgs.forgejo.overrideAttrs (old: { package = pkgs.forgejo.overrideAttrs (old: {
patches = old.patches ++ [ patches = old.patches ++ [
@ -14,7 +14,9 @@ in {
]; ];
}); });
stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo"; # use postgres, will create and start postgresql
# itself, as well as databdase and user
database.type = "postgres";
settings = { settings = {
server = { server = {