Remove deployer fn

This commit is contained in:
asonix 2023-02-19 13:49:48 -06:00
parent 818dc301fa
commit 22621d7e77

View file

@ -491,20 +491,6 @@
];
};
deployer = { hostname, configuration }: {
hostname = hostname;
profiles.system = {
sshUser = "asonix";
user = "root";
magicRollback = false;
sshOpts = [
"-i"
"/home/asonix/.ssh/kube-rsa"
"-t"
];
path = deploy-rs.lib.aarch64-linux.activate.nixos configuration;
};
};
in
{
nixosConfigurations = {
@ -680,9 +666,19 @@
in
builtins.foldl'
(acc: { name, ip }: acc // {
${name} = deployer {
${name} = {
hostname = ip;
configuration = self.nixosConfigurations.${name};
profiles.system = {
sshUser = "asonix";
user = "root";
magicRollback = false;
sshOpts = [
"-i"
"/home/asonix/.ssh/kube-rsa"
"-t"
];
path = deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.${name};
};
};
})
{ }