{ pkgs, self, onlyApt ? false, }: let inherit (pkgs.lib) elem filterAttrs mapAttrs' nameValuePair; devices = filterAttrs (n: config: let isSameSystem = config.pkgs.system == pkgs.system; in if onlyApt then isSameSystem && elem n ["bbsteamie" "binto" "homie" "wim"] else isSameSystem) self.nixosConfigurations; in mapAttrs' (name: config: nameValuePair "device_${name}" config.config.system.build.toplevel) devices