hive-forge: pin F3 PATH absolute (init runs even when disabled)

forgejo's F3 init resolves data-dir before checking ENABLED, so
`forgejo admin user create` still fataled on the RO nix-store
default. set [F3] PATH = /var/lib/forgejo/data/f3 alongside the
disable.
This commit is contained in:
müde 2026-05-17 00:25:55 +02:00
parent 3e3c27ac48
commit fed943a04e

View file

@ -114,9 +114,15 @@ in
log.LEVEL = "Warn"; log.LEVEL = "Warn";
# F3 (federation) computes its data dir relative to the # F3 (federation) computes its data dir relative to the
# forgejo binary, which lands in the read-only nix # forgejo binary, which lands in the read-only nix
# store and crashes the daemon at boot. We don't # store and crashes anything that touches the F3
# federate; turn it off. # subsystem — including `forgejo admin user create`,
"F3".ENABLED = false; # which init-ses F3 even when ENABLED=false. Pin the
# path absolute alongside the disable so the init
# resolution succeeds before the flag is checked.
"F3" = {
ENABLED = false;
PATH = "/var/lib/forgejo/data/f3";
};
}; };
}; };
environment.systemPackages = [ pkgs.forgejo ]; environment.systemPackages = [ pkgs.forgejo ];