Configuration
Minimal example:
services.container-builder = {
enable = true;
cpus = 4;
memory = "8G";
maxJobs = 4;
bridge.enable = true;
};
Common settings to review first:
hostAliasportlistenAddresscpusmemorymaxJobsbridge.enableprotocolidleShutdown.enableidleShutdown.timeoutSecondsdns.*imageRepositorynixVersion
The default image is the upstream pinned image:
docker.io/nixos/nix:2.34.6
The container guest writes a minimal nix.conf that uses
https://cache.nixos.org/ by default.
Current default behavior to keep in mind:
bridge.enable = trueprotocol = "ssh-ng"hostAlias = "container-builder"listenAddress = "127.0.0.1"port = 2222