Skip to content

Host profiles

A host profile is a template that defines the role of a machine. It is chosen with profile: in etc/config.yaml. Profiles are inherited: each starts from another and adds its specifics.

Diagram
ProfilePurposeInherits fromAdds
minimalBase of every hostHardware, firewall, i18n, zsh, sudo
serverHeadless serverminimalNo sleep, watchdog, limited boot
desktopWorkstationminimalGNOME, multimedia, office suite
laptopLaptopdesktopBattery, sensors, thermald
umiAccessible workstationdesktopAutologin, uinput, udev Tobii
portableBootable USB driveminimalExtended hardware drivers
gatewayZone gatewayserverRouter, firewall, DNS/DHCP, VPN
hcsVPN coordinationserverHeadscale + shared services
vmVirtual machineserverGuest tools (VirtualBox/QEMU/Xen)
ai-spaceAI space (agents)serverSecrets isolated from the fleet; its users form the Kanidm group space-<hôte>

Every host loads all firmware, except for a virtual machine : just install and just copy-hw detect it, regardless of its profile (0.8 GiB less to download).

Workstations (desktop, laptop) print via CUPS and network discovery, without proprietary drivers. For all drivers (HP, Brother, Canon, Epson, Samsung), including on a laptop that already had them :

# usr/machines/<hôte>/configuration.nix
darkone.service.printing.loadAll = true;

Network discovery stops at the zone : for a printer installed across the entire fleet, see Share a network printer.

etc/config.yaml
hosts:
- hostname: "poste"
profile: "desktop"