{ config, lib, ... }: let nginxPorts = lib.concatLists ( lib.mapAttrsToList ( _: cfg: (builtins.map (x: x.port) cfg.listen) ) config.services.nginx.virtualHosts ); nginxMakeLocal = port: { listen = lib.mkForce [ { inherit port; addr = "0.0.0.0"; } ]; forceSSL = lib.mkForce false; enableACME = lib.mkForce false; }; in { imports = [ ../config ]; boot = { isContainer = true; isNspawnContainer = true; }; networking = lib.mkForce { domain = "aristote.vm"; interfaces = { }; defaultGateway = null; nameservers = [ ]; firewall = { allowedTCPPorts = nginxPorts; }; dhcpcd.enable = false; }; personal.system.autoUpgrade.enable = lib.mkForce false; services.tailscale.enable = lib.mkForce false; services.resolved.enable = lib.mkForce false; services.rss-bridge.debug = true; services.headscale.settings.server_url = lib.mkForce "http://10.233.1.2:8085/"; services.nginx.virtualHosts = { quentin = nginxMakeLocal 8080; rss = nginxMakeLocal 8082; webkeydirectory = nginxMakeLocal 8083; mesh = nginxMakeLocal 8084; git = nginxMakeLocal 8086; dav = nginxMakeLocal 8087; }; environment.etc = { "searx/secrets".text = '' SECRET_KEY=secret_key ''; "msmtp/secrets".text = '' password ''; "radicale/.htpasswd".text = '' user:$apr1$e1OqTkNV$c.2giw6XR9Atjm32B/hkn. ''; }; }