Nixpkgs has a pkgs.mkBinaryCache helper that lets you create a flat-file binary cache suitable for moving around without needing a server component.