DISNIXOS-VM-ENV(1)
π DISNIXOS-VM-ENV π
okay so bestie, let me introduce you to disnixos-vm-env from the User Commands girlies β this is the one that spins up a whole network of VMs and deploys your distributed system inside it π«Ά
β¨ NAME β¨
disnixos-vm-env β deploys and runs a distributed system in a network of VMs spawned by the NixOS test driver πΈ no cap, that's literally what it does.
π SYNOPSIS π
disnixos-vm-env -s services_nix -n network_nix [ -n network_nix ... ] -d
distribution_nix [OPTION]
disnixos-vm-env -P packages_nix -n network_nix [ -n network2_nix ... ]
[OPTION]
π¦ DESCRIPTION π¦
The command disnixos-vm-env is used to generate and launch a network of virtual machines, closely matching the machine configurations defined in the network model. Iconic behavior honestly β¨
This command requires three Nix expressions as input parameters β and yes, all three, no skipping π
- A services model capturing the components of a distributed system and its inter-dependencies
- A network model capturing the NixOS configurations of machines in the network and its properties
- A distribution model which maps services to machines
By invoking this command, it will first build a network of virtual machines, closely matching the NixOS configurations in the network model. Then it will build all the services that are defined in the distribution model from source code including all its dependencies. Finally, it launches the virtual machines and deploys the system into the virtual network. the way it does all three in orderβ¦ main character energy fr fr π
π₯ OPTIONS π₯
-s,--services=services_nixβ Services Nix expression which describes all components of the distributed system π-n,--network=network_nixβ Network Nix expression which declares a NixOS configuration for each machine in the network π (and yeah, you can pass this one multiple times, see the synopsis bestie, it's right there)-d,--distribution=distribution_nixβ Distribution Nix expression which maps services to machines in the network π-P,--packages=packages_nixβ Packages Nix expression specifying the packages that should be deployed in a Nix profile mapped to each machine in the network π--deploy-stateβ Indicates whether to globally deploy state (disabled by default) π--show-traceβ Shows a trace of the output π very "let me see the receipts" of it all-h,--helpβ Shows the usage of this command π«Ά-v,--versionβ Shows the version of this command β
πΈ ENVIRONMENT πΈ
DISNIX_DEPLOY_STATEβ If set to1it also deploys the state of all components. (defaults to:0) π« lowkey confusing that it's a separate thing from the--deploy-stateflag but okay, that's the lore.DYSNOMIA_STATEDIRβ Specifies where the snapshots must be stored on the coordinator machine (defaults to:/var/state/dysnomia) π§
π COPYRIGHT π
Copyright Β© 2008-2022 Sander van der Burg π
okay that's the whole page bestie, go deploy something gorgeous β¨π
and yeah β this was disnixos-vm-env (disnixos 0.9.4) dated January 1980 (yes the date is silly, don't come for me, that's just what the footer says π). bye ily π«Άπ¦
π¦ where this page comes from
- nixos 26.05: disnixos 0.9.4
- nixpkgs unstable: disnixos 0.9.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms