DISNIX-CAPTURE-INFRA(1)

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

πŸ’… disnix-capture-infra β€” bestie's guide

okay so real talk, the manual page for disnix-capture-infra (that's the manual name, she's from the User Commands section, iykyk) is here and I'm gonna walk you through it 🫢


✨ NAME ✨

disnix-capture-infra β€” she captures the container configurations of your machines and generates an infrastructure expression out of them. literally her whole job πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

disnix-capture-infra [OPTION] infrastructure_nix

🌸 DESCRIPTION 🌸

okay so the way this works: the disnix-capture-infra command captures the container configurations of all the machines defined in the infrastructure model, and then generates an infrastructure expression from that. every single machine in the model, no skipping, no cap πŸ¦‹


πŸ’… OPTIONS πŸ’…

  • --interface=INTERFACE β€” path to the executable that talks to a Disnix interface. it defaults to disnix-ssh-client β€” that's your girl unless you say otherwise πŸ”₯
  • --target-property=PROP β€” the target property of an infrastructure model, i.e. the thing that specifies how to connect to the remote Disnix interface. defaults to: hostname (as it should πŸ’…)
  • --xml β€” says the configurations are in XML, not the Nix expression language. important distinction bestie, don't mix them up 😭
  • -h, --help β€” shows the usage of this command to the user. use it, it's free πŸ’–
  • -v, --version β€” shows the version of this command to the user. also free πŸŽ€

🌈 ENVIRONMENT 🌈

  • DISNIX_CLIENT_INTERFACE β€” sets the client interface (which defaults to disnix-ssh-client) ✨
  • DISNIX_TARGET_PROPERTY β€” specifies which property in the infrastructure Nix expression specifies how to connect to the remote interface (defaults to: hostname) πŸ‘‘

Copyright Β© 2008-2022 Sander van der Burg


that's the whole vibe! 🧚 this lil page is disnix version 0.10.2, dated January 1980 (yes really, iconic of her tbh), from the User Commands manual. go capture some infra bestie, slay πŸ’œπŸ’«

πŸ“¦ where this page comes from