forgejo use latest and update

This commit is contained in:
Satria 2026-03-07 13:33:12 +07:00
commit 32c1205a51
2 changed files with 13 additions and 12 deletions

6
flake.lock generated
View file

@ -62,11 +62,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772807318, "lastModified": 1772845525,
"narHash": "sha256-Qjw6ILt8cb2HQQpCmWNLMZZ63wEo1KjTQt+1BcQBr7k=", "narHash": "sha256-Dp5Ir2u4jJDGCgeMRviHvEQDe+U37hMxp6RSNOoMMPc=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "daa2c221320809f5514edde74d0ad0193ad54ed8", "rev": "27b93804fbef1544cb07718d3f0a451f4c4cd6c0",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,16 +1,17 @@
{ homelab, ... }: { { pkgs, homelab, ... }: {
services.forgejo = { services.forgejo = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;
stateDir = "/mnt/data/forgejo"; stateDir = "/mnt/data/forgejo";
secrets = { package = pkgs.forgejo;
oauth2.JWT_SECRET = "/mnt/data/forgejo/custom/conf/oauth2_jwt_secret"; #secrets = {
server.LFS_JWT_SECRET = "/mnt/data/forgejo/custom/conf/lfs_jwt_secret"; # oauth2.JWT_SECRET = "/mnt/data/forgejo/custom/conf/oauth2_jwt_secret";
security = { # server.LFS_JWT_SECRET = "/mnt/data/forgejo/custom/conf/lfs_jwt_secret";
INTERNAL_TOKEN = "/mnt/data/forgejo/custom/conf/internal_token"; # security = {
SECRET_KEY = "/mnt/data/forgejo/custom/conf/secret_key"; # INTERNAL_TOKEN = "/mnt/data/forgejo/custom/conf/internal_token";
}; # SECRET_KEY = "/mnt/data/forgejo/custom/conf/secret_key";
}; # };
#};
settings = { settings = {
server = { server = {
DISABLE_SSH = true; DISABLE_SSH = true;