Compare commits

...

3 commits

Author SHA1 Message Date
lew
d154344930 feat: added htop 2026-04-04 22:47:23 +01:00
lew
771846382e feat: added just 2026-04-04 22:47:13 +01:00
lew
9004fd3933 fix: a mess of ports 2026-04-04 22:47:08 +01:00
3 changed files with 16 additions and 5 deletions

View file

@ -9,5 +9,7 @@
neovim
git
sops
just
htop
];
}

View file

@ -12,13 +12,14 @@
services.openssh = {
enable = true;
ports = [ 4200 ];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
networking.firewall.allowedTCPPorts = [ 80 443 4200 ];
users.users.lew = {
isNormalUser = true;

View file

@ -12,26 +12,34 @@ in
services.caddy.virtualHosts."git.ily.rs" = {
extraConfig = ''
reverse_proxy localhost:${toString srv.HTTP_PORT}
encode zstd gzip
'';
};
services.forgejo = {
enable = true;
database.type = "sqlite3";
lfs.enable = true;
settings = {
server = {
DOMAIN = "git.ily.rs";
ROOT_URL = "https://git.ily.rs/";
HTTP_PORT = 3000;
SSH_DOMAIN = "git.ily.rs";
START_SSH_SERVER = true;
SSH_PORT = 2222;
SSH_LISTEN_PORT = 2222;
SSH_PORT = 4201;
SSH_LISTEN_PORT = 4201;
DISABLE_HTTP_GIT = true;
};
service = {
DISABLE_REGISTRATION = true;
REQUIRE_SIGNIN_VIEW = false;
};
service.DISABLE_REGISTRATION = true;
};
};
networking.firewall.allowedTCPPorts = [ 2222 ];
networking.firewall.allowedTCPPorts = [ 4201 ];
systemd.services.forgejo.preStart = let
adminCmd = "${lib.getExe cfg.package} admin user";