nixos/nixos/deploy.nix

24 lines
672 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: remoteBuild: {
inherit hostname remoteBuild;
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" ];
nodes = {
2022-12-04 18:08:58 +01:00
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;
};
}