deploy-rs: fix config

This commit is contained in:
Felix Buehler 2022-12-04 18:08:58 +01:00
parent 4723299bd8
commit e7b6c789dc

View file

@ -1,22 +1,23 @@
{ self { self, ... }:
, deploy-rs
, ...
}:
let let
mkNode = server: ip: fast: { inherit (self.inputs) deploy-rs;
hostname = "${ip}:22"; mkNode = server: hostname: system: remoteBuild: {
fastConnection = fast; inherit hostname remoteBuild;
fastConnection = true;
profiles.system.path = profiles.system.path =
deploy-rs.lib.x86_64-linux.activate.nixos deploy-rs.lib.${system}.activate.nixos
self.nixosConfigurations."${server}"; self.nixosConfigurations."${server}";
}; };
in in
{ {
user = "root"; user = "root";
#sshUser = "felix"; sshUser = "felix";
sshUser = "root"; sshOpts = [ "-i" "~/.ssh/keys/local_ed25519" ];
#sshOpts = [ "-p" "6158" "-i" "~/.ssh/keys/local_ed25519" ];
nodes = { nodes = {
serverle = mkNode "serverle" "serverle.local" true; thinkman = mkNode "thinkman" "localhost" "x86_64-linux" false;
newton = mkNode "newton" "buehler.rocks" true; newton = mkNode "newton" "buehler.rocks" "x86_64-linux" false;
serverle = mkNode "serverle" "serverle.local" "aarch64-linux" true;
}; };
} }