mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
deploy-rs: fix config
This commit is contained in:
parent
4723299bd8
commit
e7b6c789dc
1 changed files with 13 additions and 12 deletions
|
@ -1,22 +1,23 @@
|
|||
{ self
|
||||
, deploy-rs
|
||||
, ...
|
||||
}:
|
||||
{ self, ... }:
|
||||
let
|
||||
mkNode = server: ip: fast: {
|
||||
hostname = "${ip}:22";
|
||||
fastConnection = fast;
|
||||
inherit (self.inputs) deploy-rs;
|
||||
mkNode = server: hostname: system: remoteBuild: {
|
||||
inherit hostname remoteBuild;
|
||||
fastConnection = true;
|
||||
profiles.system.path =
|
||||
deploy-rs.lib.x86_64-linux.activate.nixos
|
||||
deploy-rs.lib.${system}.activate.nixos
|
||||
self.nixosConfigurations."${server}";
|
||||
};
|
||||
in
|
||||
{
|
||||
user = "root";
|
||||
#sshUser = "felix";
|
||||
sshUser = "root";
|
||||
sshUser = "felix";
|
||||
sshOpts = [ "-i" "~/.ssh/keys/local_ed25519" ];
|
||||
#sshOpts = [ "-p" "6158" "-i" "~/.ssh/keys/local_ed25519" ];
|
||||
|
||||
nodes = {
|
||||
serverle = mkNode "serverle" "serverle.local" true;
|
||||
newton = mkNode "newton" "buehler.rocks" true;
|
||||
thinkman = mkNode "thinkman" "localhost" "x86_64-linux" false;
|
||||
newton = mkNode "newton" "buehler.rocks" "x86_64-linux" false;
|
||||
serverle = mkNode "serverle" "serverle.local" "aarch64-linux" true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue