mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +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
|
{ 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;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue