tyo0/forgejo: customize

This commit is contained in:
Guanran Wang 2024-08-27 17:08:53 +08:00
parent 2280df2d04
commit d9ba3826aa
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
5 changed files with 31 additions and 16 deletions

View file

@ -16,8 +16,11 @@
./services/murmur.nix
./services/ntfy.nix
./services/pixivfe.nix
./services/redlib.nix
./services/searx.nix
./services/uptime-kuma.nix
./services/vaultwarden.nix
./services/wastebin.nix
];
boot.loader.grub.device = lib.mkForce "/dev/nvme0n1";
@ -105,22 +108,6 @@
};
};
services.wastebin = {
enable = true;
settings.WASTEBIN_ADDRESS_PORT = "127.0.0.1:8200";
};
services.uptime-kuma = {
enable = true;
settings.PORT = "8300";
};
services.redlib = {
enable = true;
address = "127.0.0.1";
port = 9400;
};
### Prevents me from bankrupt
# https://fmk.im/p/shutdown-aws/
services.vnstat.enable = true;

View file

@ -5,6 +5,10 @@
package = pkgs.forgejo;
database.type = "postgres";
settings = {
DEFAULT = {
APP_NAME = "git.ny4.dev";
};
server = {
DOMAIN = "git.ny4.dev";
PROTOCOL = "http+unix";
@ -15,6 +19,11 @@
service = {
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
};
repository = {
DISABLE_STARS = true;
DEFAULT_BRANCH = "master";
};
};
};
}

View file

@ -0,0 +1,7 @@
{
services.redlib = {
enable = true;
address = "127.0.0.1";
port = 9400;
};
}

View file

@ -0,0 +1,6 @@
{
services.uptime-kuma = {
enable = true;
settings.PORT = "8300";
};
}

View file

@ -0,0 +1,6 @@
{
services.wastebin = {
enable = true;
settings.WASTEBIN_ADDRESS_PORT = "127.0.0.1:8200";
};
}