{ pkgs, ... }: { imports = [ ./hardware/automatix.nix ]; boot.loader.grub = { enable = true; version = 2; device = "/dev/sda"; }; networking = { hostName = "automatix"; firewall = { allowedTCPPorts = [ 22 80 443 ]; }; }; services = { gogs = { enable = true; database.type = "sqlite3"; appName = "~/projects"; domain = "code.kummerlaender.eu"; rootUrl = "http://code.kummerlaender.eu/"; extraConfig = '' [service] DISABLE_REGISTRATION = true SHOW_REGISTRATION_BUTTON = false ''; }; nginx = { enable = true; recommendedGzipSettings = true; recommendedOptimisation = true; recommendedProxySettings = true; recommendedTlsSettings = true; virtualHosts."code.kummerlaender.eu" = { addSSL = true; enableACME = true; locations = { "/" = { proxyPass = "http://localhost:3000/"; }; }; }; }; }; }