mirror of
https://github.com/kp2pml30/dotfiles.git
synced 2026-04-14 22:31:46 +04:00
add git hosting
This commit is contained in:
parent
70e965c63f
commit
778ad87a8a
6 changed files with 55 additions and 25 deletions
22
nix/server/forgejo.nix
Normal file
22
nix/server/forgejo.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config
|
||||
, pkgs
|
||||
, lib
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
cfg = config.kp2pml30.server;
|
||||
in lib.mkIf cfg.forgejo {
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
database.type = "postgres";
|
||||
lfs.enable = true;
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.${cfg.hostname}";
|
||||
ROOT_URL = "https://git.${cfg.hostname}/";
|
||||
HTTP_PORT = 8002;
|
||||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue