feat: set up colmena with hetzner stuff
This commit is contained in:
9
deploy/README.md
Normal file
9
deploy/README.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# `colmena` deployments
|
||||
|
||||
* tags: `local`, `cloud`
|
||||
* deployments can be made from `astyanax` and `andromache` hosts
|
||||
|
||||
## References
|
||||
|
||||
- [docs: `colmena`](https://colmena.cli.rs/)
|
||||
- [repo: `colmena`](https://github.com/zhaofengli/colmena)
|
||||
28
deploy/colmena.nix
Normal file
28
deploy/colmena.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
self,
|
||||
inputs,
|
||||
}:
|
||||
|
||||
inputs.colmena.lib.makeHive {
|
||||
meta = {
|
||||
nixpkgs = import inputs.nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
|
||||
nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) self.nixosConfigurations;
|
||||
nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs or { }) self.nixosConfigurations;
|
||||
};
|
||||
|
||||
astyanax.deployment.tags = [ "local" ];
|
||||
|
||||
andromache.deployment.tags = [ "local" ];
|
||||
|
||||
vm.deployment.tags = [ "local" ];
|
||||
|
||||
hecuba.deployment = {
|
||||
targetHost = "hecuba";
|
||||
targetUser = "username";
|
||||
targetPort = 22;
|
||||
tags = [ "cloud" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user