ALPHA: wire is a tool to deploy nixos systems wire.althaea.zone/

comment: true title: Use Flakes description: How to output a hive from a flake.#

Use Flakes#

{{ $frontmatter.description }}

Output a hive#

::: tip If you have skipped ahead, please read the previous page to understand the concept of a hive. :::

You can use wire with a flake by outputting a hive with the wire flake output. Just like when using a hive.nix, you must provide meta.nixpkgs which will come from an input.

::: code-group <<< @/snippets/getting-started/flake.nix [flake.nix] :::

$ nix flake show
git+file:///some/path
└───wire: unknown

$ wire show
Node node-a (x86_64-linux):

 > Connection: {root@node-a:22}
 > Build remotely `deployment.buildOnTarget`: false
 > Local apply allowed `deployment.allowLocalDeployment`: true

Summary: 1 total node(s), totalling 0 keys (0 distinct).
Note: Listed connections are tried from Left to Right