DISNIX-INSTANTIATE(1)
π disnix-instantiate β like, the manual page, but make it make sense β¨
Hey bestie π«Ά so this is DISNIX-INSTANTIATE(1), aka the User Commands page for disnix-instantiate, and I'm gonna walk you through it like we're on FaceTime at 1am. No cap, it's actually not that deep once you get the vibe. π
πΈ NAME πΈ
disnix-instantiate β it instantiates a distributed derivation from Disnix expressions. That's it, that's the whole name. Iconic of it, honestly. π
β¨ SYNOPSIS β¨
Okay so here's how you're allowed to call it β all three forms are valid, pick your fighter:
disnix-instantiate -s services_nix -i infrastructure_nix -d
distribution_nix [OPTION]
disnix-instantiate -P packages_nix -i infrastructure_nix [OPTION]
disnix-instantiate -A architecture_nix [OPTION]
Notice how each one is followed by [OPTION]? Yeah, that means the extra flags are optional, you're not being held at gunpoint. π
π¦ DESCRIPTION π¦
Okay so the whole point of the command: disnix-instantiate generates a distributed derivation file from a service, infrastructure and distribution Nix expression π. Then that file can be handed to the disnix-build command, which builds the services on the target machines straight from source code. Like, from scratch. From source. Very main character energy. π₯
Real talk though: most users and developers don't need to use this command directly β the command disnix-env already performs instantiation of a distributed derivation automatically for you. π So why does this exist? Mostly for debugging purposes, or for when you wanna do certain tasks manually and feel a little bit powerful about it. π
π OPTIONS π
This is the big one, bestie β every single flag, all of them, no skipping, periodt:
-s,--services=services_nixβ the Services Nix expression, which describes all components of the distributed system π-i,--infrastructure=infrastructure_nixβ the Infrastructure Nix expression, which captures properties of machines in the network π-d,--distribution=distribution_nixβ the Distribution Nix expression, which maps services to machines in the network πΊοΈ-P,--packages=packages_nixβ the Packages Nix expression, specifying the packages that should be deployed in a Nix profile mapped to each machine in the network π-A,--architecture=architecture_nixβ the Deployment architecture Nix expression that captures all properties of the services and infrastructure, including the distribution of services to targets ποΈ-B,--build=build_nixβ the Build Nix expression that maps store derivations to target machines in the network π§--extra-params=PARAMSβ a string with an attribute set in the Nix expression language, propagating extra parameters to input models β¨--target-property=PROPβ the target property of an infrastructure model, that specifies how to connect to the remote Disnix interface. (Defaults to:hostname) π₯οΈ--interface=INTERFACEβ path to executable that communicates with a Disnix interface. Defaults to:disnix-ssh-clientπ--no-out-linkβ do not create aresultsymlink π«--show-traceβ shows a trace of the output π-h,--helpβ shows the usage of this command to the user π«Ά-v,--versionβ shows the version of this command to the user π
πΌ ENVIRONMENT πΌ
Because of course there are env vars, there are always env vars:
DISNIX_CLIENT_INTERFACEβ sets the client interface (defaults to:disnix-ssh-client) π«DISNIX_TARGET_PROPERTYβ sets the target property of an infrastructure model, that specifies how to connect to the remote Disnix interface. (Defaults to:hostname) πΈ
π COPYRIGHT π
Copyright Β© 2008-2022 Sander van der Burg π
And that's the tea, bestie β β that was DISNIX-INSTANTIATE(1) from disnix 0.1..., dated January 1980 (yes really, the date is a whole vibe, we don't ask questions π). Go forth and instantiate responsibly. π§π
π¦ where this page comes from
- nixos 26.05: disnix 0.10.2
- nixpkgs unstable: disnix 0.10.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms