Filter home configuration checks based on check platform

This commit is contained in:
Jack O'Sullivan 2022-02-21 21:52:23 +00:00
parent de5e320c1a
commit ac31486f6b

View File

@ -140,7 +140,8 @@
# Stuff for each platform # Stuff for each platform
{ {
checks = flattenTree { checks = flattenTree {
homeConfigurations = recurseIntoAttrs (mapAttrs (_: h: h.activationPackage) self.homeConfigurations); homeConfigurations = recurseIntoAttrs (mapAttrs (_: h: h.activationPackage)
(lib.filterAttrs (_: h: h.config.nixpkgs.system == system) self.homeConfigurations));
deploy = recurseIntoAttrs (pkgs.deploy-rs.lib.deployChecks self.deploy); deploy = recurseIntoAttrs (pkgs.deploy-rs.lib.deployChecks self.deploy);
}; };