2024-01-26 17:00:00 -05:00
|
|
|
{ self, nixpkgs, deploy-rs, ... }:
|
2023-07-27 15:22:16 -04:00
|
|
|
let
|
|
|
|
mkDeploy = hostName:
|
|
|
|
let
|
|
|
|
inherit (self.hosts.${hostName}) type address system sshUser;
|
2024-01-26 17:00:00 -05:00
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
deployPkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [
|
2024-03-30 13:43:43 -04:00
|
|
|
deploy-rs.overlays.default
|
2024-01-26 17:00:00 -05:00
|
|
|
(_self: super: {
|
|
|
|
deploy-rs = {
|
|
|
|
inherit (pkgs) deploy-rs; inherit (super.deploy-rs) lib;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
inherit (deployPkgs.deploy-rs.lib) activate;
|
2023-07-27 15:22:16 -04:00
|
|
|
in
|
|
|
|
{
|
|
|
|
hostname = address;
|
2023-09-10 14:27:05 -04:00
|
|
|
profiles.system = {
|
|
|
|
user = "root";
|
|
|
|
inherit sshUser;
|
|
|
|
path = activate.${type} self."${type}Configurations".${hostName};
|
|
|
|
};
|
2023-07-27 15:22:16 -04:00
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nodes = {
|
|
|
|
socrates = mkDeploy "socrates";
|
|
|
|
plato = mkDeploy "plato";
|
|
|
|
agent = mkDeploy "agent";
|
|
|
|
form = mkDeploy "form";
|
|
|
|
matter = mkDeploy "matter";
|
|
|
|
purpose = mkDeploy "purpose";
|
|
|
|
epicurus = mkDeploy "epicurus";
|
|
|
|
};
|
|
|
|
}
|