tyo0/forgejo: customize
This commit is contained in:
parent
2280df2d04
commit
d9ba3826aa
5 changed files with 31 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
7
hosts/tyo0/services/redlib.nix
Normal file
7
hosts/tyo0/services/redlib.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
services.redlib = {
|
||||
enable = true;
|
||||
address = "127.0.0.1";
|
||||
port = 9400;
|
||||
};
|
||||
}
|
6
hosts/tyo0/services/uptime-kuma.nix
Normal file
6
hosts/tyo0/services/uptime-kuma.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.uptime-kuma = {
|
||||
enable = true;
|
||||
settings.PORT = "8300";
|
||||
};
|
||||
}
|
6
hosts/tyo0/services/wastebin.nix
Normal file
6
hosts/tyo0/services/wastebin.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
services.wastebin = {
|
||||
enable = true;
|
||||
settings.WASTEBIN_ADDRESS_PORT = "127.0.0.1:8200";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue