Skip to content

Std Kits Reference

This page lists the 11 kits that std ships. The roles, settings, and exports come from the kit files, so this page cannot drift from the code. A setting with a default shows it after =. Every kit name links to its source file. For a guided tour with a working example, see Built-In Kits Catalog.

std.kits.borg: generic BorgBackup server/client wiring (zero forced sshd, zero surprise paths or encryption).

Role Count Settings Exports
client any compression: maybe(str) = null
encryption: maybe(attrs) = null
paths: listOf(str) = []
startAt: maybe(str) = null
none
server min 1, max 1 authorizedKeys: listOf(str) = []
baseDir: str = "/srv/borg"
persist: bool = true
user: str = "borg"
addr: str
repo: str

std.kits.disko: layout-agnostic Disko wiring — imports each host’s own disko file without imposing any disk or filesystem layout.

Role Count Settings Exports
machine any dir: maybe(path) = null
diskoModule: maybe(any) = null
file: maybe(path) = null
strict: bool = false
none

std.kits.dotfiles: validates declared dotfile paths at eval time and switches cleanly between store copies and live symlinks.

Role Count Settings Exports
user any checkoutDir: maybe(str) = null
root: path
none

std.kits.facter: attaches per-host nixos-facter hardware report JSON paths when present.

Role Count Settings Exports
machine any dir: path
strict: bool = false
none

std.kits.homelab: clean parts composition bundling sshd, borg, and monitoring with safe defaults.

Role Count Settings Exports
hub min 1, max 1 none none
node min 1 none none

Bundles std.kits.borg, std.kits.monitoring, std.kits.sshd through parts.

std.kits.host-files: automatically imports existing per-host Nix files (such as hardware-configuration.nix) with zero boilerplate.

Role Count Settings Exports
machine any dir: path
files: listOf(str) = ["hardware-configuration.nix"]
none

std.kits.monitoring: generic Prometheus server scraping node-exporter agents (opt-in firewall).

Role Count Settings Exports
agent min 1 openFirewall: bool = false
port: port = 9100
target: str
server min 1, max 1 openFirewall: bool = false
persist: bool = true
port: port = 9090
stateDir: maybe(str) = null
none

std.kits.postgres: generic PostgreSQL server/client wiring (opt-in firewall, zero /etc/profile pollution).

Role Count Settings Exports
client any envVar: maybe(str) = null none
server min 1, max 1 dataDir: maybe(str) = null
databases: listOf(str) = []
openFirewall: bool = false
persist: bool = true
port: port = 5432
databases: listOf(str)
host: str
port: port

std.kits.remote-builders: cross-platform (NixOS + Darwin) distributed Nix builds via peers.

Role Count Settings Exports
builder min 1 authorizedKeys: listOf(str) = []
maxJobs: int = 4
speedFactor: int = 2
sshUser: str = "nixbuild"
supportedFeatures: listOf(str) = []
hostName: str
maxJobs: int
speedFactor: int
sshUser: str
supportedFeatures: listOf(str)
system: str
client any protocol: str = "ssh-ng"
sshKey: maybe(str) = null
none

std.kits.sshd: generic OpenSSH daemon wiring with zero opinionated hardening overrides.

Role Count Settings Exports
server min 1 openFirewall: bool = false
port: maybe(port) = null
settings: attrs = {}
port: port

std.kits.wireguard: valid per-peer WireGuard mesh (explicit non-overlapping tunnelIp & publicKey, NAT-safe).

Role Count Settings Exports
peer min 2 interface: str = "wg0"
openFirewall: bool = false
peers: attrsOf(record({ listenPort, privateKeyFile, publicKey, tunnelIp }))
endpoint: maybe(str) = null
name: str
publicKey: str
tunnelIp: str
ContributeCommunitySponsor