try deploy-rs

This commit is contained in:
2023-08-20 20:19:51 +08:00
parent e20dae7d8b
commit 78ca1676d7
2 changed files with 48 additions and 0 deletions

27
flake.lock generated
View File

@@ -23,6 +23,32 @@
"type": "github"
}
},
"deploy-rs": {
"inputs": {
"flake-compat": [
"flake-compat"
],
"nixpkgs": [
"nixpkgs"
],
"utils": [
"flake-utils"
]
},
"locked": {
"lastModified": 1686747123,
"narHash": "sha256-XUQK9kwHpTeilHoad7L4LjMCCyY13Oq383CoFADecRE=",
"owner": "serokell",
"repo": "deploy-rs",
"rev": "724463b5a94daa810abfc64a4f87faef4e00f984",
"type": "github"
},
"original": {
"owner": "serokell",
"repo": "deploy-rs",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@@ -604,6 +630,7 @@
"root": {
"inputs": {
"aagl": "aagl",
"deploy-rs": "deploy-rs",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts",
"flake-utils": "flake-utils",

View File

@@ -97,6 +97,16 @@
url = "github:nixpak/nixpak";
inputs.nixpkgs.follows = "nixpkgs";
};
deploy-rs =
{
url = "github:serokell/deploy-rs";
inputs =
{
flake-compat.follows = "flake-compat";
nixpkgs.follows = "nixpkgs";
utils.follows = "flake-utils";
};
};
};
outputs = inputs:
@@ -751,5 +761,16 @@
];
};
};
deploy =
{
sshUser = "root";
user = "root";
fastConnection = true;
nodes =
{
vps6.profiles.system.path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos inputs.self.nixosConfigurations.vps6;
};
};
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
};
}