2024-04-13 15:28:31 +00:00
|
|
|
{ self, pkgs, machines, flake-utils, deploy-rs, ... }: flake-utils.lib.eachDefaultSystem (system: {
|
2024-03-02 12:58:17 +00:00
|
|
|
# Deploy-rs' flake checks seem broken for architectures different from the deployment machine.
|
|
|
|
# We skip these here.
|
2024-03-05 19:56:00 +00:00
|
|
|
|
|
|
|
checks = deploy-rs.lib.${system}.deployChecks (
|
2024-04-13 15:28:31 +00:00
|
|
|
pkgs.lib.attrsets.updateManyAttrsByPath [{
|
2024-03-05 19:56:00 +00:00
|
|
|
path = [ "nodes" ];
|
2024-04-13 15:28:31 +00:00
|
|
|
update = pkgs.lib.attrsets.filterAttrs (name: node:
|
2024-03-02 12:58:17 +00:00
|
|
|
machines.${name}.arch == system
|
2024-03-05 19:56:00 +00:00
|
|
|
);
|
|
|
|
}]
|
|
|
|
self.deploy
|
|
|
|
);
|
2024-03-02 12:58:17 +00:00
|
|
|
})
|