Options
The main option namespace is services.container-builder.
Important options:
enablehostAliassshUsercontainerPortworkingDirectoryusercontainerBinaryinstaller.urlinstaller.hashinstaller.versioncontainerNameimageRepositorynixVersionimageContainerfileimageBuildContextcpusmemoryhomeMountexposeHostContainerInternalsystemssupportedFeaturesmandatoryFeaturesmaxJobsspeedFactorprotocolreadiness.timeoutSecondsreadiness.intervalSecondsidleShutdown.enableidleShutdown.timeoutSecondscli.completions.enablesocktainer.enablesocktainer.binarysocktainer.homeDirectorysocktainer.setDockerHostsocktainer.installer.urlsocktainer.installer.hashsocktainer.installer.version
Machine notes:
containerNameis the Apple container machine name.imageRepositoryandnixVersioncombine into the image reference used bycontainer machine create.- The default image is published by this repository as
ghcr.io/robertderose/nix-hex-box/hexbox-builder:latest. - Scheduled builds refresh
latest; image-definition changes also publishalpine-3.22-lix-2.95.2-2for pinned use. Builder image publishing is skipped until the configured Lix tag is at least seven days old. - Set
imageContainerfileto build a local custom image instead of pulling the default image.imageBuildContextsupplies an optional absolute host path to the build context; without it, HexBox builds with an empty generated context. Custom images must also providesocat,base64,getent, and a working/sbin/init, because HexBox uses them during bootstrap, SSH proxying, and machine boot. homeMountdefaults tononeso the builder does not mount the host home directory.idleShutdown.timeoutSecondscontrols the guest watchdog that powers the machine off after no active SSH connections remain.
Host integration notes:
exposeHostContainerInternaldefaults totrueand ensureshost.container.internalexists throughcontainer system dns.- The Nix builder path uses
ssh-ngthrough generated SSH config andProxyCommand; no stable machine IP or published host port is required.
Completion notes:
cli.completions.enabledefaults tofalse.- When enabled, the module installs bash, zsh, and fish completion files into the standard Nix-managed completion directories.
- The module does not try to detect the user’s shell or edit shell startup files.
See modules/container-builder.nix for the authoritative option defaults and
types.