The Nix agent derivation builds scripts/build/*.py from a fileset that does not include pm/, so importing pm.store.ALL_TARGETS there failed nix flake check with ModuleNotFoundError. Extend the local target regex with linux-(x64|arm64)-musl instead.