{ config, modulesPath, ... }: { imports = [ (modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/virtualisation/qemu-guest-agent.nix") ]; services.qemuGuest.enable = true; nixpkgs.hostPlatform.system = "x86_64-linux"; depot.disk = { enable = true; # device = "/dev/vda"; }; xnet = { nginx.enable = true; gitServer = { enable = true; path = "/var/lib/gitsrv"; gitweb.enable = true; }; }; depot.net = { sshd.enable = true; }; security.acme = { acceptTerms = true; defaults.email = "certs@4kb.net"; certs."4kb.net" = { dnsProvider = "porkbun"; environmentFile = "/var/secrets/porkbun"; extraDomainNames = [ "*.4kb.net" "*.web.4kb.net" ]; group = "nginx"; reloadServices = [ "nginx.service" ]; }; }; services.hydra = { enable = true; hydraURL = "https://hydra.web.4kb.net"; notificationSender = "hydra@localhost"; buildMachinesFiles = []; useSubstitutes = true; }; services.nginx.virtualHosts."hydra.web.4kb.net" = { useACMEHost = "4kb.net"; forceSSL = true; locations."/".proxyPass = "http://localhost:${toString config.services.hydra.port}"; }; nix.settings.allowed-uris = [ "git+https://github.com/NixOS/nixpkgs/" "https://channels.nixos.org/" "https://releases.nixos.org/nixos/" ]; systemd.services.hydra-notify.enable = false; networking = { hostName = "feneri"; domain = "4kb.net"; useDHCP = false; }; }