som more deploy-rs mods

This commit is contained in:
William 2025-10-16 15:30:01 -03:00
parent 3792c11bf0
commit 0cf06f8541
3 changed files with 17 additions and 14 deletions

View file

@ -1,10 +1,11 @@
{ inputs, self, ... }:
{
flake.deploy.nodes = {
remoteBuild = true;
alexandria = {
hostname = "alexandria";
profiles.system = {
sshUser = "root";
sshUser = "user";
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.alexandria;
user = "root";
};
@ -13,7 +14,7 @@
trantor = {
hostname = "trantor";
profiles.system = {
sshUser = "root";
sshUser = "user";
path = inputs.deploy-rs.lib.aarch64-linux.activate.nixos self.nixosConfigurations.trantor;
user = "root";
};
@ -23,7 +24,7 @@
hostname = "io";
profiles = {
system = {
sshUser = "root";
sshUser = "user";
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.io;
user = "root";
};
@ -35,7 +36,9 @@
};
};
};
# Optional: Add deploy-rs checks
flake.checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
perSystem =
{ system, ... }:
{
checks = inputs.deploy-rs.lib.${system}.deployChecks self.deploy;
};
}