nixinate: migrate from deploy-rs

This commit is contained in:
Felix Buehler 2024-01-18 22:37:39 +01:00
parent 1f940b9852
commit de5fd563c3
8 changed files with 65 additions and 46 deletions

View file

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

View file

@ -5,6 +5,7 @@
./disko-config.nix
./hardware-configuration.nix
./network.nix
./nixinate.nix
./services.nix
./syncthing.nix
./system.nix

View file

@ -0,0 +1,9 @@
_: {
_module.args.nixinate = {
host = "buehler.rocks";
sshUser = "felix";
buildOn = "remote";
substituteOnTarget = true;
hermetic = true;
};
}

View file

@ -4,6 +4,7 @@
./disko-config.nix
./hardware-configuration.nix
./network.nix
./nixinate.nix
./services.nix
./syncthing.nix
./system.nix

View file

@ -0,0 +1,9 @@
_: {
_module.args.nixinate = {
host = "serverle.local";
sshUser = "felix";
buildOn = "remote";
substituteOnTarget = true;
hermetic = true;
};
}