ALPHA: wire is a tool to deploy nixos systems
wire.althaea.zone/
comment: true title: Meta Options description: wire hive meta options.#
Meta Options#
{{ $frontmatter.description }}
meta.nixpkgs#
Tells wire how to get nixpkgs.
Type: A path or an instance of nixpkgs.
Default: null
Examples:
{
# all valid options
meta.nixpkgs = <nixpkgs>;
meta.nixpkgs = import <nixpkgs> { };
meta.nixpkgs = import sources.nixpkgs { };
meta.nixpkgs = inputs.nixpkgs.outPath;
meta.nixpkgs = inputs.other-nixpkgs.outPath;
}
meta.specialArgs#
Extra specialArgs to pass to each node & default.
::: tip
wire always passes name (name of the node)
and nodes (attribute set of all nodes) as args, even if meta.specialArgs = { }.
:::
Type: attribute set
Default: { }
Example:
{
meta.specialArgs = {
# pass flake inputs as specialArgs
inherit inputs;
};
}
meta.nodeSpecialArgs#
Extra specialArgs to override meta.specialArgs for each node
Type: attribute set of attribute set
Default: { }
Example:
{
meta.nodeSpecialArgs = {
extra-property = "some-value";
};
}
meta.nodeNixpkgs#
Per-node nixpkgs to override meta.nixpkgs.
See meta.nixpkgs examples for possible values.
Type: attribute set of path or an instance of nixpkgs
Default: { }
Example:
{
meta = {
nixpkgs = import <nixpkgs> { };
nodeNixpkgs = {
node-b = import <special-nixpkgs> { };
};
};
node-a =
{ pkgs, ... }:
{
# uses <nixpkgs> (meta.nixpkgs)
};
node-b =
{ pkgs, ... }:
{
# uses <special-nixpkgs> (meta.nodeNixpkgs.node-b)
};
}