DISNIXOS-VM-ENV(1)

πŸ“¦ version 0.9.4, in nixos 26.05, nixpkgs unstable

πŸ’… 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 to 1 it also deploys the state of all components. (defaults to: 0) πŸ’« lowkey confusing that it's a separate thing from the --deploy-state flag 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 Β© 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