add forgejo
This commit is contained in:
parent
de1d958778
commit
91206fb3c0
4 changed files with 35 additions and 6 deletions
8
flake.lock
generated
8
flake.lock
generated
|
@ -106,11 +106,11 @@
|
|||
"nixpkgs": "nixpkgs_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749728695,
|
||||
"narHash": "sha256-ZeWhAif+eh/ObPxceqQcuvtvxreXTNcHnhWEbPAuppM=",
|
||||
"lastModified": 1750258769,
|
||||
"narHash": "sha256-BazJgo04yFqFfp2AA0Tfba+nBAeaNddQJBdLghVJskk=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "c35a0b510854103f466adca6b60f50822893daca",
|
||||
"revCount": 5,
|
||||
"rev": "fa0e8ca47dd5341d24d8aae90a0bc28a689c3d46",
|
||||
"revCount": 6,
|
||||
"type": "git",
|
||||
"url": "file:///var/lib/git-server/math-project.git"
|
||||
},
|
||||
|
|
|
@ -43,7 +43,8 @@
|
|||
|
||||
jank-client.nixosModules.x86_64-linux.default
|
||||
./services/spacebar.nix
|
||||
./services/rgit.nix
|
||||
# ./services/rgit.nix
|
||||
./services/gitea.nix
|
||||
|
||||
./services/translate.nix
|
||||
|
||||
|
|
28
services/gitea.nix
Executable file
28
services/gitea.nix
Executable file
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
systemd.services.gitea = {
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe pkgs.forgejo} -c /etc/gitea/config.ini";
|
||||
RemainAfterExit = true;
|
||||
Restart = "always";
|
||||
RestartMaxDelaySec = "1m";
|
||||
RestartSec = "100ms";
|
||||
RestartSteps = 9;
|
||||
User = "git";
|
||||
Group = "git";
|
||||
};
|
||||
wantedBy = ["multi-user.target"];
|
||||
};
|
||||
environment.etc."gitea/config.ini.default" = {
|
||||
text = ''
|
||||
WORK_PATH = /var/lib/git-server
|
||||
[server]
|
||||
HTTP_PORT = 8000
|
||||
'';
|
||||
mode = "644";
|
||||
};
|
||||
}
|
|
@ -2,7 +2,7 @@
|
|||
systemd.services.rgit = {
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${rgit.packages.x86_64-linux.default}/bin/rgit -d /var/lib/git-server/.db/rgit-cache.db [::1]:3000 /var/lib/git-server";
|
||||
ExecStart = "${rgit.packages.x86_64-linux.default}/bin/rgit -d /var/lib/git-server/.db/rgit-cache.db [::1]:8000 /var/lib/git-server";
|
||||
RemainAfterExit = true;
|
||||
Restart = "always";
|
||||
RestartMaxDelay = "1m";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue