nixos-servers/checks.nix

18 lines
532 B
Nix
Raw Normal View History

{ self, nixpkgs, flake-utils, deploy-rs, ... }: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
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 (
pkgs.lib.attrsets.updateManyAttrsByPath [{
2024-03-05 19:56:00 +00:00
path = [ "nodes" ];
update = pkgs.lib.attrsets.filterAttrs (name: node:
self.machines.${name}.arch == system
2024-03-05 19:56:00 +00:00
);
}]
self.deploy
);
2024-03-02 12:58:17 +00:00
})