Remove deployer fn
This commit is contained in:
parent
818dc301fa
commit
22621d7e77
28
flake.nix
28
flake.nix
|
@ -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};
|
||||
};
|
||||
};
|
||||
})
|
||||
{ }
|
||||
|
|
Loading…
Reference in a new issue