moved forgejo from cirrus to cirrostratus for more disk space.

This commit is contained in:
Gabe Venberg 2026-03-22 14:14:12 +01:00
parent 14ac8a86ad
commit 2f3c84ca71
7 changed files with 24 additions and 6 deletions

View file

@ -17,6 +17,7 @@ in {
DOMAIN = "git.venberg.xyz";
ROOT_URL = "https://${srv.DOMAIN}";
HTTP_PORT = 3000;
SSH_PORT = 2222;
ENABLE_GZIP = true;
};
service.DISABLE_REGISTRATION = true;
@ -31,6 +32,8 @@ in {
};
};
services.openssh.ports = [srv.SSH_PORT];
services.nginx.virtualHosts.${srv.DOMAIN} = {
enableACME = true;
forceSSL = true;
@ -44,6 +47,7 @@ in {
"/var/lib/forgejo/custom"
"/var/lib/forgejo/data"
"/var/lib/forgejo/repositories"
"/var/lib/forgejo/.ssh"
];
preBackupCommands = "systemctl stop forgejo.service";
postBackupCommands = "systemctl start forgejo.service";

View file

@ -11,8 +11,12 @@
];
services.openssh = {
enable = true;
settings.PermitRootLogin = "prohibit-password";
settings.PasswordAuthentication = false;
ports = [22];
openFirewall = true;
settings = {
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
};
# so we dont have to set TERM everytime we ssh in.
environment.systemPackages = [pkgs.kitty.terminfo];