nixos/machines/deploy.nix

25 lines
652 B
Nix
Raw Normal View History

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