{ pkgs, ... }: { name = "gitea"; ip = { host = "10.10.0.1"; local = "10.10.0.2"; }; config = { services.gitea = { enable = true; appName = "My awesome Gitea server"; # Give the site a name database = { type = "sqlite3"; }; settings.server = { DOMAIN = "localhost"; ROOT_URL = "http://localhost/"; HTTP_PORT = 3001; }; }; }; ports = { tcp = [ 3001 ]; udp = []; http = 3001; }; hosts = [ "localhost" ]; }