️ use deploy-rs from nixpkgs

This commit is contained in:
2024-01-26 17:00:00 -05:00
parent aa4ed46e50
commit d87221ed37
5 changed files with 42 additions and 31 deletions

View File

@@ -1,9 +1,21 @@
{ self, deploy-rs, ... }:
{ self, nixpkgs, deploy-rs, ... }:
let
mkDeploy = hostName:
let
inherit (self.hosts.${hostName}) type address system sshUser;
inherit (deploy-rs.lib.${system}) activate;
pkgs = import nixpkgs { inherit system; };
deployPkgs = import nixpkgs {
inherit system;
overlays = [
deploy-rs.overlay
(_self: super: {
deploy-rs = {
inherit (pkgs) deploy-rs; inherit (super.deploy-rs) lib;
};
})
];
};
inherit (deployPkgs.deploy-rs.lib) activate;
in
{
hostname = address;