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) = nullencryption: maybe(attrs) = nullpaths: listOf(str) = []startAt: maybe(str) = null |
none |
server |
min 1, max 1 | authorizedKeys: listOf(str) = []baseDir: str = "/srv/borg"persist: bool = trueuser: str = "borg" |
addr: strrepo: 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) = nulldiskoModule: maybe(any) = nullfile: maybe(path) = nullstrict: bool = false |
none |
dotfiles
Section titled “dotfiles”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) = nullroot: path |
none |
facter
Section titled “facter”std.kits.facter: attaches per-host nixos-facter hardware report JSON paths when present.
| Role | Count | Settings | Exports |
|---|---|---|---|
machine |
any | dir: pathstrict: bool = false |
none |
homelab
Section titled “homelab”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.
host-files
Section titled “host-files”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: pathfiles: listOf(str) = ["hardware-configuration.nix"] |
none |
monitoring
Section titled “monitoring”std.kits.monitoring: generic Prometheus server scraping node-exporter agents (opt-in firewall).
| Role | Count | Settings | Exports |
|---|---|---|---|
agent |
min 1 | openFirewall: bool = falseport: port = 9100 |
target: str |
server |
min 1, max 1 | openFirewall: bool = falsepersist: bool = trueport: port = 9090stateDir: maybe(str) = null |
none |
postgres
Section titled “postgres”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) = nulldatabases: listOf(str) = []openFirewall: bool = falsepersist: bool = trueport: port = 5432 |
databases: listOf(str)host: strport: port |
remote-builders
Section titled “remote-builders”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 = 4speedFactor: int = 2sshUser: str = "nixbuild"supportedFeatures: listOf(str) = [] |
hostName: strmaxJobs: intspeedFactor: intsshUser: strsupportedFeatures: 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 = falseport: maybe(port) = nullsettings: attrs = {} |
port: port |
wireguard
Section titled “wireguard”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 = falsepeers: attrsOf(record({ listenPort, privateKeyFile, publicKey, tunnelIp })) |
endpoint: maybe(str) = nullname: strpublicKey: strtunnelIp: str |