Create script to auto-deploy with retries
This commit is contained in:
parent
e3cacda356
commit
6a745892a4
12 changed files with 176 additions and 48 deletions
27
deploy/system-physical/default.nix
Normal file
27
deploy/system-physical/default.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
deployPkgs,
|
||||
pkgs,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (pkgs.lib) pipe filterAttrs mapAttrs;
|
||||
in
|
||||
{
|
||||
nodes = pipe self.nixosConfigurations [
|
||||
(filterAttrs (_n: v: !v.config.services.qemuGuest.enable && !v.config.qois.git-ci-runner.enable))
|
||||
(mapAttrs (
|
||||
host: config: {
|
||||
hostname = "${host}.backplane.net.qo.is";
|
||||
profiles.system-physical = {
|
||||
sshUser = "root";
|
||||
user = "root";
|
||||
activationTimeout = 600;
|
||||
confirmTimeout = 120;
|
||||
remoteBuild = true;
|
||||
path = deployPkgs.deploy-rs.lib.activate.nixos config;
|
||||
};
|
||||
}
|
||||
))
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue