revert server modules to pre-merge state

Server work (frigate, bitcoin/clightning, forgejo, nginx) was merged
before ready. Reverts these to de56423 state. Work is preserved on
branches: cameras, lightning, server, bitcoind.
This commit is contained in:
Bryan Ramos 2026-03-08 11:04:30 -04:00
parent 0bcd891c7c
commit dab93c5ee0
12 changed files with 107 additions and 388 deletions

View file

@ -10,25 +10,24 @@ in
config = mkIf cfg.enable {
users = {
users = {
"${config.services.forgejo.user}" = {
"git" = {
description = "Git server system user";
home = config.services.forgejo.stateDir;
isSystemUser = true;
group = "${config.services.forgejo.user}";
group = "git";
extraGroups = mkIf nginx.enable [
"web"
];
};
"${config.services.nginx.user}" = {
"nginx" = {
extraGroups = mkIf nginx.enable [
"${config.services.forgejo.group}"
"git"
];
};
};
groups = {
"${config.services.forgejo.group}" = {
"git" = {
members = [
"${config.services.forgejo.user}"
"git"
];
};
};
@ -45,24 +44,15 @@ in
PROTOCOL = "http+unix";
DOMAIN = "127.0.0.1";
HTTP_ADDR = "/run/forgejo/forgejo.sock";
ROOT_URL = "https://git.ramos.codes";
};
};
database = {
name = "git";
inherit user;
type = "sqlite3";
path = "${stateDir}/data/forgejo.db";
createDatabase = true;
};
dump = {
enable = true;
file = "git.bkup";
type = "tar.gz";
interval = "weekly";
};
};
};
}