Open busti opened 5 months ago
I believe $(nix-build -A myHost)
should work because of https://github.com/infinisil/nixus/blob/5257be6a58e6093d0ef7540cee1bf764194e72af/build.nix#L58 :)
Could you please also give an example of how to do it with flakes?
Taking https://github.com/infinisil/nixus/issues/54 as the base, something like
apps =
{
default = flake-utils.lib.mkApp {
drv = self.packages.${system}.deployer;
exePath = "";
};
}
// nixpkgs.lib.mapAttrs' (name: value: {
name = "node-${name}";
value = flake-utils.lib.mkApp {
drv = value.deployScript;
exePath = "";
};
) self.packages.${system}.deployer.config.nodes;
should work for nix run .#node-myHost
:)
How do I deploy a single host only or alternatively make the deployment not fail when a host cannot be reached?